[PATCH 2/3] c.h: Include stdlib.h unconditionaly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



No point in hiding it down in an ifdef maze,
as it may get used by exit(3).

Signed-off-by: maximilian attems <max@xxxxxxx>
---
 include/c.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/c.h b/include/c.h
index 79581ae..a9cd1f3 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
-- 
1.7.5.4

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux