Skip to content

Commit

Permalink
Define INVALID_SOCKET for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
GELLEZ committed Jan 30, 2018
1 parent 672b987 commit c26d17c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/HttpClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <unistd.h> /* close */
#include <netdb.h> /* gethostbyname */
#define SOCKET_ERROR -1
#define INVALID_SOCKET -1
#ifndef closesocket
#define closesocket(s) close(s)
#endif
Expand Down

0 comments on commit c26d17c

Please sign in to comment.