summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-07-30 01:23:13 +0200
committerGravatar Nikias Bassen2013-07-30 01:23:13 +0200
commit10939f3ad5755d1117f20df2b97c0cbbd83bbcbe (patch)
tree0c9e81625a97a96f9c63898964fcff64287a3f9e
parent9631a38c55acd203c305bb721dbd1a347bf6ce20 (diff)
downloadusbmuxd-10939f3ad5755d1117f20df2b97c0cbbd83bbcbe.tar.gz
usbmuxd-10939f3ad5755d1117f20df2b97c0cbbd83bbcbe.tar.bz2
libusbmuxd: use 104 for EBADMSG in win32 and only define it if it's not defined already.
-rw-r--r--libusbmuxd/libusbmuxd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libusbmuxd/libusbmuxd.c b/libusbmuxd/libusbmuxd.c
index 4a59639..20ac8ab 100644
--- a/libusbmuxd/libusbmuxd.c
+++ b/libusbmuxd/libusbmuxd.c
@@ -33,7 +33,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#ifndef EPROTO
#define EPROTO 134
#endif
-#define EBADMSG 77
+#ifndef EBADMSG
+#define EBADMSG 104
+#endif
#else
#include <sys/socket.h>
#include <arpa/inet.h>