]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
include: [xalloc.h] include string.h
authorMarek Polacek <mmpolacek@gmail.com>
Fri, 4 Feb 2011 14:08:48 +0000 (15:08 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 7 Feb 2011 16:46:15 +0000 (17:46 +0100)
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>
include/xalloc.h

index 27efa30c58aadcd68e8f5618612a5815265ce9e0..841333c30886aa1aa08a3257875cbdcfe25fd60f 100644 (file)
@@ -12,6 +12,7 @@
 
 #include <stdlib.h>
 #include <err.h>
+#include <string.h>
 
 #include "c.h"