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>
This commit is contained in:
parent
4b2b671697
commit
4d49851351
|
@ -9,6 +9,7 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
@ -109,7 +110,6 @@ extern char *__progname;
|
||||||
# define program_invocation_short_name __progname
|
# define program_invocation_short_name __progname
|
||||||
# else
|
# else
|
||||||
# ifdef HAVE_GETEXECNAME
|
# ifdef HAVE_GETEXECNAME
|
||||||
# include <stdlib.h>
|
|
||||||
# define program_invocation_short_name \
|
# define program_invocation_short_name \
|
||||||
prog_inv_sh_nm_from_file(getexecname(), 0)
|
prog_inv_sh_nm_from_file(getexecname(), 0)
|
||||||
# else
|
# else
|
||||||
|
|
Loading…
Reference in New Issue