Skip to content

Commit 10df413

Browse files
committed
NO-JIRA: Fix header file includes to compile under FreeBSD
1 parent e1c3cd0 commit 10df413

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

proton-c/src/tests/proactor.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,11 @@ static int pnitst_snprintf(char *buf, size_t count, const char *fmt, ...) {
6262
}
6363

6464
#else /* POSIX */
65-
66-
typedef int sock_t;
65+
# include <sys/types.h>
66+
# include <sys/socket.h>
6767
# include <netinet/in.h>
6868
# include <unistd.h>
69+
typedef int sock_t;
6970
void sock_close(sock_t sock) { close(sock); }
7071
#endif
7172

0 commit comments

Comments
 (0)