]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
include: [c.h] Include stdlib.h unconditionaly
authormaximilian attems <max@stro.at>
Sun, 31 Jul 2011 10:47:20 +0000 (12:47 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 2 Aug 2011 11:58:46 +0000 (13:58 +0200)
No point in hiding it down in an ifdef maze,
as it may get used by exit(3).

Signed-off-by: maximilian attems <max@stro.at>
include/c.h

index 79581aeb412f5b643cb6637d908f296efd52d5a2..a9cd1f3f5e29fab509b2334629c1201f75547b4f 100644 (file)
@@ -9,6 +9,7 @@
 #include <stdint.h>
 #include <stdio.h>
 #include <stdarg.h>
+#include <stdlib.h>
 #include <string.h>
 #include <errno.h>
 
@@ -109,7 +110,6 @@ extern char *__progname;
 #  define program_invocation_short_name __progname
 # else
 #  ifdef HAVE_GETEXECNAME
-#   include <stdlib.h>
 #   define program_invocation_short_name \
                prog_inv_sh_nm_from_file(getexecname(), 0)
 #  else