diff options
| author | 2010-05-26 20:30:02 +0200 | |
|---|---|---|
| committer | 2010-05-26 20:30:02 +0200 | |
| commit | 0833499c76f78da21fc33874a485946189a33dad (patch) | |
| tree | 3406bc2729986945020748d176d492c6c4a4628a /libusbmuxd/libusbmuxd.c | |
| parent | 6cb505257ff848aa7ead80b60b575effc3a915fa (diff) | |
| download | usbmuxd-0833499c76f78da21fc33874a485946189a33dad.tar.gz usbmuxd-0833499c76f78da21fc33874a485946189a33dad.tar.bz2 | |
libusbmuxd: use winsock API for win32
Diffstat (limited to 'libusbmuxd/libusbmuxd.c')
| -rw-r--r-- | libusbmuxd/libusbmuxd.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libusbmuxd/libusbmuxd.c b/libusbmuxd/libusbmuxd.c index f465deb..80ffdd7 100644 --- a/libusbmuxd/libusbmuxd.c +++ b/libusbmuxd/libusbmuxd.c | |||
| @@ -26,8 +26,14 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |||
| 26 | #include <errno.h> | 26 | #include <errno.h> |
| 27 | #include <stdio.h> | 27 | #include <stdio.h> |
| 28 | #include <string.h> | 28 | #include <string.h> |
| 29 | #ifdef WIN32 | ||
| 30 | #include <windows.h> | ||
| 31 | #include <winsock2.h> | ||
| 32 | #define sleep(x) Sleep(x*1000) | ||
| 33 | #else | ||
| 29 | #include <sys/socket.h> | 34 | #include <sys/socket.h> |
| 30 | #include <arpa/inet.h> | 35 | #include <arpa/inet.h> |
| 36 | #endif | ||
| 31 | #include <unistd.h> | 37 | #include <unistd.h> |
| 32 | #include <signal.h> | 38 | #include <signal.h> |
| 33 | #include <pthread.h> | 39 | #include <pthread.h> |
