Browse Source

Fix a compile warning on OpenBSD

Sebastian Hahn 15 years ago
parent
commit
2af6aadfe9
2 changed files with 6 additions and 0 deletions
  1. 3 0
      changes/bug1848
  2. 3 0
      src/or/or.h

+ 3 - 0
changes/bug1848

@@ -0,0 +1,3 @@
+  o Minor bugfixes:
+    - Squash a compile warning on OpenBSD. Reported by Tas, fixes bug 1848.
+

+ 3 - 0
src/or/or.h

@@ -59,6 +59,9 @@
 #ifdef HAVE_SYS_STAT_H
 #ifdef HAVE_SYS_STAT_H
 #include <sys/stat.h>
 #include <sys/stat.h>
 #endif
 #endif
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
 #ifdef HAVE_ARPA_INET_H
 #ifdef HAVE_ARPA_INET_H
 #include <arpa/inet.h>
 #include <arpa/inet.h>
 #endif
 #endif