diff options
author | Marek Polacek | 2011-02-04 15:08:48 +0100 |
---|---|---|
committer | Karel Zak | 2011-02-07 17:46:15 +0100 |
commit | b45fa8b2f1ac3ffd9dc6ab7018260d753d1147b2 (patch) | |
tree | 56be74c7b7542468d91628040af86a41aeb09c2f | |
parent | include: [c.h] add fallback for alloc_size attributes (diff) | |
download | kernel-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>
-rw-r--r-- | include/xalloc.h | 1 |
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" |