Skip to content

Commit 5a20d0b

Browse files
committed
Fix compilation on OpenBSD and HP-UX
For using select() function on POSIX systems it is needed to include more header files. Fixes: 5034cd7
1 parent d41c154 commit 5a20d0b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

socket.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
#include <stddef.h>
1111
#include <errno.h>
1212

13+
#ifndef _WIN32
14+
#include <sys/time.h>
15+
#include <sys/types.h>
16+
#include <unistd.h>
17+
#endif
18+
1319
/*
1420
* Warning: Native socket code must be outside of dbdimp.c and dbdimp.h because
1521
* perl header files redefine socket function. This file must not

0 commit comments

Comments
 (0)