Skip to content

Commit

Permalink
Conditional include of socket.h or winsock2 in tests (closes #169)
Browse files Browse the repository at this point in the history
Thanks to MarjanTomas.
  • Loading branch information
stephane committed Nov 25, 2013
1 parent 52a82f8 commit 946fb25
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/unit-test-server.c
Expand Up @@ -21,7 +21,11 @@
#include <stdlib.h>
#include <errno.h>
#include <modbus.h>
#include <sys/socket.h>
#ifdef _WIN32
# include <winsock2.h>
#else
# include <sys/socket.h>
#endif

#include "unit-test.h"

Expand Down

0 comments on commit 946fb25

Please sign in to comment.