Parcourir la source

Fix a compile warning on OpenBSD

Sebastian Hahn il y a 15 ans
Parent
commit
2af6aadfe9
2 fichiers modifiés avec 6 ajouts et 0 suppressions
  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
 #include <sys/stat.h>
 #endif
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
 #ifdef HAVE_ARPA_INET_H
 #include <arpa/inet.h>
 #endif