Explorar o código

Precompiler directives to include sys/socket on OpenBSD.

Markus Klingenberger# %!s(int64=8) %!d(string=hai) anos
pai
achega
ceb27d614e
Modificáronse 2 ficheiros con 6 adicións e 0 borrados
  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