ports/net/libdaq/files/patch-api_daq__common.h
2019-09-12 11:48:17 +00:00

12 lines
350 B
C

--- api/daq_common.h.orig 2019-09-06 11:14:19 UTC
+++ api/daq_common.h
@@ -30,6 +30,9 @@ extern "C" {
#include <sys/time.h>
#include <stdint.h>
#include <unistd.h>
+#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
+#include <sys/socket.h>
+#endif
#ifndef DAQ_SO_PUBLIC
# ifdef HAVE_VISIBILITY