[Pkg-shadow-devel] [PATCH] copydir: include stdarg.h for va_* funcs

Mike Frysinger vapier at gentoo.org
Mon Feb 13 03:42:51 UTC 2012

Building on newer systems fails due to using stdargs but not including
the header file:

copydir.c: In function 'error_acl':
copydir.c:126:2: warning: implicit declaration of function 'va_start' [-Wimplicit-function-declaration]
copydir.c:132:2: warning: implicit declaration of function 'va_end' [-Wimplicit-function-declaration]
libmisc/copydir.c:126: undefined reference to 'va_start'
libmisc/copydir.c:132: undefined reference to 'va_end'
make[2]: *** [useradd] Error 1

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
 libmisc/copydir.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libmisc/copydir.c b/libmisc/copydir.c
index 7cb5f56..c6cbe6b 100644
--- a/libmisc/copydir.c
+++ b/libmisc/copydir.c
@@ -40,6 +40,7 @@
 #include <sys/time.h>
 #include <fcntl.h>
 #include <stdio.h>
+#include <stdarg.h>
 #include "prototypes.h"
 #include "defines.h"

More information about the Pkg-shadow-devel mailing list