merged/added from 0.25
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 18 Nov 2003 23:47:11 +0000 (23:47 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 18 Nov 2003 23:47:11 +0000 (23:47 +0000)
added workaround for broken 'long long' handling of dietlibc

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@411 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/compat.h

index f128874..ced3083 100644 (file)
 #if defined(__dietlibc__) && defined(__STRICT_ANSI__) && defined(__STDC_VERSION__)
 #  include <sys/cdefs.h>
 #  undef inline
+
+#  undef  __STRICT_ANSI__
+#  include <stdint.h>
+#  define __STRICT_ANSI__
 #endif
 
 #if defined(__GNUC__)
@@ -44,7 +48,8 @@
 #endif
 
 #ifndef HAVE_CTX_T
-typedef short int              ctx_t;
+#include <stdint.h>
+typedef uint32_t               ctx_t;
 #endif
 
 #if defined(__dietlibc__)