X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dcf924a345ea8ffbc1cf6b40b5f75c6005e504c0..b9b3ccd9ea9bf892369a6fa2c8e28e0ceca18527:/src/unix/utilsunx.cpp diff --git a/src/unix/utilsunx.cpp b/src/unix/utilsunx.cpp index 69b8cea1a0..e9510f7235 100644 --- a/src/unix/utilsunx.cpp +++ b/src/unix/utilsunx.cpp @@ -58,28 +58,28 @@ #if !defined(HAVE_USLEEP) && \ (defined(__SUN__) && !defined(__SunOs_5_6) && \ !defined(__SunOs_5_7) && !defined(__SUNPRO_CC)) || \ - defined(__osf__) + defined(__osf__) || defined(__EMX__) extern "C" { #ifdef __SUN__ int usleep(unsigned int usec); #else // !Sun - void usleep(unsigned long usec); - #endif // Sun/!Sun + #ifdef __EMX + /* I copied this from the XFree86 diffs. AV. */ + #define INCL_DOSPROCESS + #include + void usleep(unsigned long delay) + { + DosSleep(delay ? (delay/1000l) : 1l); + } + #else + void usleep(unsigned long usec); + #endif + #endif // Sun/EMX/Something else }; +#define HAVE_USLEEP 1 #endif // Unices without usleep() -#ifdef __EMX__ - /* I copied this from the XFree86 diffs. AV. */ -extern void DosSleep(unsigned long); -#define INCL_DOSPROCESS -#include -void usleep(unsigned long delay) -{ - DosSleep(delay ? (delay/1000l) : 1l); -} -#endif - // ============================================================================ // implementation // ============================================================================ @@ -277,7 +277,7 @@ long wxExecute( wxChar **argv, bool sync, wxProcess *process ) } // fork the process -#ifdef HAVE_VFORK +#if HAVE_VFORK pid_t pid = vfork(); #else pid_t pid = fork();