瀏覽代碼

Precompiler directives to include sys/socket on OpenBSD.

Markus Klingenberger# 8 年之前
父節點
當前提交
ceb27d614e
共有 2 個文件被更改,包括 6 次插入0 次删除
  1. 3 0
      plugins/ua_network_tcp.c
  2. 3 0
      plugins/ua_network_udp.c

+ 3 - 0
plugins/ua_network_tcp.c

@@ -42,6 +42,9 @@
 # ifdef __QNX__
 #  include <sys/socket.h>
 # endif
+# ifdef __OpenBSD__
+#  include <sys/socket.h>
+# endif
 # ifndef __CYGWIN__
 #  include <netinet/tcp.h>
 # endif

+ 3 - 0
plugins/ua_network_udp.c

@@ -24,6 +24,9 @@
 #ifdef __QNX__
 #include <sys/socket.h>
 #endif
+#ifdef __OpenBSD__
+#include <sys/socket.h>
+#endif 
 # define CLOSESOCKET(S) close(S)
 
 #define MAXBACKLOG 100