소스 검색

Fix a compile warning on OpenBSD

Sebastian Hahn 15 년 전
부모
커밋
2af6aadfe9
2개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  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