summaryrefslogtreecommitdiffstats
path: root/include/c.h
diff options
context:
space:
mode:
authormaximilian attems2011-07-31 12:47:20 +0200
committerKarel Zak2011-08-02 13:58:46 +0200
commit4d49851351f1ff2a6d1dc220e91f72f5d4eab004 (patch)
treece3470f1b94001f0d2c23691292f4c9f076cb34e /include/c.h
parentinclude: [c.h] move up declaration of program_invocation_short_name before usage (diff)
downloadkernel-qcow2-util-linux-4d49851351f1ff2a6d1dc220e91f72f5d4eab004.tar.gz
kernel-qcow2-util-linux-4d49851351f1ff2a6d1dc220e91f72f5d4eab004.tar.xz
kernel-qcow2-util-linux-4d49851351f1ff2a6d1dc220e91f72f5d4eab004.zip
include: [c.h] Include stdlib.h unconditionaly
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>
Diffstat (limited to 'include/c.h')
-rw-r--r--include/c.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/c.h b/include/c.h
index 79581aeb4..a9cd1f3f5 100644
--- a/include/c.h
+++ b/include/c.h
@@ -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