From: Andrew Deason Date: Wed, 12 Jan 2011 16:29:46 +0000 (-0600) Subject: SOLARIS: Include sys/varargs.h for kernel stdarg X-Git-Tag: upstream/1.6.0.pre2^2~142 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=782e0f3ae1f8453d54560e6dcc85537c5671edb0;p=packages%2Fo%2Fopenafs.git SOLARIS: Include sys/varargs.h for kernel stdarg When compiling for the kernel, pre-10 Solaris seems to want instead of , as documented in the Solaris man pages. So include instead of where we need variable arguments (afs_warn.c). Reviewed-on: http://gerrit.openafs.org/3653 Tested-by: Andrew Deason Tested-by: Derrick Brashear Reviewed-by: Derrick Brashear (cherry picked from commit 6d03eef7217be8f0b72f34ab023e69c976dea84d) Change-Id: I473bcaa368c739265b911e79d596193f75ff8697 Reviewed-on: http://gerrit.openafs.org/3655 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/afs/afs_warn.c b/src/afs/afs_warn.c index 6beca876c..8ec43343b 100644 --- a/src/afs/afs_warn.c +++ b/src/afs/afs_warn.c @@ -20,9 +20,14 @@ #include "afs/sysincludes.h" /* Standard vendor system headers */ #if !defined(UKERNEL) + #if !defined(AFS_LINUX20_ENV) -#include -#include "stdarg.h" +# include +# if defined(AFS_SUN58_ENV) +# include +# else +# include +# endif #endif #include