diff options
| author | 2013-07-30 00:57:12 +0200 | |
|---|---|---|
| committer | 2013-07-30 00:57:12 +0200 | |
| commit | 9631a38c55acd203c305bb721dbd1a347bf6ce20 (patch) | |
| tree | e32c841e5dc182053ca2a35f167467bc417393fc | |
| parent | 702a6faac5de45e2279c8a87a529b24a5b64d418 (diff) | |
| download | usbmuxd-9631a38c55acd203c305bb721dbd1a347bf6ce20.tar.gz usbmuxd-9631a38c55acd203c305bb721dbd1a347bf6ce20.tar.bz2 | |
libusbmuxd: use 134 for EPROTO in win32 and only define it if it's not defined already.
Thanks saurik for pointing this out.
| -rw-r--r-- | libusbmuxd/libusbmuxd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libusbmuxd/libusbmuxd.c b/libusbmuxd/libusbmuxd.c index b4afe8e..4a59639 100644 --- a/libusbmuxd/libusbmuxd.c +++ b/libusbmuxd/libusbmuxd.c | |||
| @@ -30,7 +30,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |||
| 30 | #include <windows.h> | 30 | #include <windows.h> |
| 31 | #include <winsock2.h> | 31 | #include <winsock2.h> |
| 32 | #define sleep(x) Sleep(x*1000) | 32 | #define sleep(x) Sleep(x*1000) |
| 33 | #define EPROTO 71 | 33 | #ifndef EPROTO |
| 34 | #define EPROTO 134 | ||
| 35 | #endif | ||
| 34 | #define EBADMSG 77 | 36 | #define EBADMSG 77 |
| 35 | #else | 37 | #else |
| 36 | #include <sys/socket.h> | 38 | #include <sys/socket.h> |
