Browse Source

Fix suseconds_t for OSX.

Ycros 14 years ago
parent
commit
31d98cf167
1 changed files with 4 additions and 4 deletions
  1. 4 4
      compat.h

+ 4 - 4
compat.h

@@ -1,10 +1,6 @@
 #ifndef __COMPAT_H__
 #define __COMPAT_H__
 
-#ifndef __SUSECONDS_T_TYPE
-typedef long suseconds_t;
-#endif
-
 #ifdef WIN32
 
 #include <windows.h>
@@ -28,6 +24,10 @@ typedef unsigned long int ulong;
 typedef unsigned short int ushort;
 typedef unsigned int uint;
 
+#ifndef __SUSECONDS_T_TYPE
+typedef long suseconds_t;
+#endif
+
 #endif /* WIN32 */
 
 #endif /* __COMPAT_H__ */