]> git.ozlabs.org Git - petitboot/blobdiff - lib/talloc/talloc.c
Add va-copy check to configure.ac
[petitboot] / lib / talloc / talloc.c
index c660870543a83ff4d6dcee74ac516f599bd0709b..95a0a6a0b395a82990170e1efae5227f8fdce544 100644 (file)
   inspired by http://swapped.cc/halloc/
 */
 
-
+#if defined(HAVE_CONFIG_H)
 #include "config.h"
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
+#else
 /* nfsim additions */
 #define HAVE_SYS_TYPES_H
 #define HAVE_UNISTD_H
 #define HAVE_STDARG_H
 #define HAVE_STDINT_H
 #define HAVE_VA_COPY
+#endif
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 
 #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>