[tor-commits] [torperf/master] (util.c): #include <arpa/inet.h> for ntohl().

karsten at torproject.org karsten at torproject.org
Sat Apr 16 10:20:32 UTC 2011


commit 28061a3d049ce72ade656c9970f2cf75750af57f
Author: Linus Nordberg <linus at nordberg.se>
Date:   Thu Apr 14 23:24:53 2011 +0200

    (util.c): #include <arpa/inet.h> for ntohl().
    
    The BSD's don't get ntohl from any of the other includes.
---
 util.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/util.c b/util.c
index fdf7681..96cee0a 100644
--- a/util.c
+++ b/util.c
@@ -13,6 +13,7 @@
 
 #include <sys/types.h>
 #include <sys/socket.h>
+#include <arpa/inet.h>
 #include <unistd.h>
 #include <stdint.h>
 #include <assert.h>





More information about the tor-commits mailing list