summaryrefslogtreecommitdiffstats
path: root/include/xalloc.h
diff options
context:
space:
mode:
authorMarek Polacek2011-02-04 15:08:48 +0100
committerKarel Zak2011-02-07 17:46:15 +0100
commitb45fa8b2f1ac3ffd9dc6ab7018260d753d1147b2 (patch)
tree56be74c7b7542468d91628040af86a41aeb09c2f /include/xalloc.h
parentinclude: [c.h] add fallback for alloc_size attributes (diff)
downloadkernel-qcow2-util-linux-b45fa8b2f1ac3ffd9dc6ab7018260d753d1147b2.tar.gz
kernel-qcow2-util-linux-b45fa8b2f1ac3ffd9dc6ab7018260d753d1147b2.tar.xz
kernel-qcow2-util-linux-b45fa8b2f1ac3ffd9dc6ab7018260d753d1147b2.zip
include: [xalloc.h] include string.h
xalloc.h needs string.h for declaration of strdup(). Otherwise we can get implicit declaration warning. This patch prevents it. Signed-off-by: Marek Polacek <mpolacek@redhat.com>
Diffstat (limited to 'include/xalloc.h')
-rw-r--r--include/xalloc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/xalloc.h b/include/xalloc.h
index 27efa30c5..841333c30 100644
--- a/include/xalloc.h
+++ b/include/xalloc.h
@@ -12,6 +12,7 @@
#include <stdlib.h>
#include <err.h>
+#include <string.h>
#include "c.h"