summaryrefslogtreecommitdiff
path: root/include/xalloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/xalloc.h')
-rw-r--r--include/xalloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/xalloc.h b/include/xalloc.h
index f1cc8d4..532b80f 100644
--- a/include/xalloc.h
+++ b/include/xalloc.h
@@ -27,6 +27,7 @@
#ifndef __MTD_UTILS_XALLOC_H__
#define __MTD_UTILS_XALLOC_H__
+#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
@@ -84,7 +85,6 @@ static char *xstrdup(const char *s)
}
#ifdef _GNU_SOURCE
-#include <stdarg.h>
__attribute__((unused))
static int xasprintf(char **strp, const char *fmt, ...)