From dec96029b4a132f3a4f6d7a05b84a66588f47165 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Tue, 18 Nov 2003 23:47:11 +0000 Subject: [PATCH] merged/added from 0.25 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 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/util-vserver/compat.h b/util-vserver/compat.h index f128874..ced3083 100644 --- a/util-vserver/compat.h +++ b/util-vserver/compat.h @@ -22,6 +22,10 @@ #if defined(__dietlibc__) && defined(__STRICT_ANSI__) && defined(__STDC_VERSION__) # include # undef inline + +# undef __STRICT_ANSI__ +# include +# define __STRICT_ANSI__ #endif #if defined(__GNUC__) @@ -44,7 +48,8 @@ #endif #ifndef HAVE_CTX_T -typedef short int ctx_t; +#include +typedef uint32_t ctx_t; #endif #if defined(__dietlibc__) -- 1.8.1.5