Skip to content

Commit

Permalink
NO-JIRA: Fix header file includes to compile under FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
astitcher committed Jul 14, 2017
1 parent e1c3cd0 commit 10df413
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions proton-c/src/tests/proactor.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,11 @@ static int pnitst_snprintf(char *buf, size_t count, const char *fmt, ...) {
}

#else /* POSIX */

typedef int sock_t;
# include <sys/types.h>
# include <sys/socket.h>
# include <netinet/in.h>
# include <unistd.h>
typedef int sock_t;
void sock_close(sock_t sock) { close(sock); }
#endif

Expand Down

0 comments on commit 10df413

Please sign in to comment.