summaryrefslogtreecommitdiff
path: root/ldpd/pfkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldpd/pfkey.c')
-rw-r--r--ldpd/pfkey.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ldpd/pfkey.c b/ldpd/pfkey.c
index f0f16c867f..29f763e6a6 100644
--- a/ldpd/pfkey.c
+++ b/ldpd/pfkey.c
@@ -17,7 +17,9 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#ifdef __OpenBSD__
#include <sys/types.h>
+#include <sys/socket.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
@@ -464,3 +466,4 @@ pfkey_init(void)
}
return (fd);
}
+#endif /* __OpenBSD__ */