瀏覽代碼

Merge pull request #793 from dunst0/freebsdfix/module_ipops

ipops: fix compilation under FreeBSD
Daniel-Constantin Mierla 9 年之前
父節點
當前提交
38971b5312
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      modules/ipops/detailed_ip_type.c

+ 3 - 0
modules/ipops/detailed_ip_type.c

@@ -26,6 +26,9 @@
 #include <stdio.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdlib.h>
 #include <arpa/inet.h>
 #include <arpa/inet.h>
+#if defined (__OS_freebsd)
+#include <sys/socket.h>
+#endif
 #include <string.h>
 #include <string.h>
 #include <unistd.h>
 #include <unistd.h>
 #include "../../dprint.h"
 #include "../../dprint.h"