From 8e6ce39679451f35a6ff1edae7bd2212fc2849ae Mon Sep 17 00:00:00 2001 From: David Crosby Date: Thu, 14 Jul 2016 03:29:34 +0200 Subject: Move EBADMSG and EPROTO defines out of the WIN32 ifdef Fixes compilation on OpenBSD, which surprisingly doesn't have them --- src/libusbmuxd.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/libusbmuxd.c b/src/libusbmuxd.c index 485857b..8003730 100644 --- a/src/libusbmuxd.c +++ b/src/libusbmuxd.c @@ -40,16 +40,17 @@ #endif #endif -#ifdef WIN32 -#include -#include -#define sleep(x) Sleep(x*1000) #ifndef EPROTO #define EPROTO 134 #endif #ifndef EBADMSG #define EBADMSG 104 #endif + +#ifdef WIN32 +#include +#include +#define sleep(x) Sleep(x*1000) #else #include #include -- cgit v1.1-32-gdbae