]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Include "xalloc.h" first, to check interface.
authorJim Meyering <jim@meyering.net>
Sat, 13 Sep 2003 10:23:46 +0000 (10:23 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 13 Sep 2003 10:23:46 +0000 (10:23 +0000)
Include <stdlib.h> unconditionally.

Include exit.h.
(EXIT_FAILURE): Remove; now done by exit.h

lib/xmalloc.c

index ead50393d3485a251c8bb509987d894e7192f98f..3adf5dda88f1c4f74683d2860d9d2e283775c8c7 100644 (file)
 # include <config.h>
 #endif
 
-#include <sys/types.h>
-
-#if STDC_HEADERS
-# include <stdlib.h>
-#else
-void *calloc ();
-void *malloc ();
-void *realloc ();
-void free ();
-#endif
+#include "xalloc.h"
+
+#include <stdlib.h>
 
 #include "gettext.h"
 #define _(msgid) gettext (msgid)
 #define N_(msgid) msgid
 
 #include "error.h"
+#include "exit.h"
 #include "exitfail.h"
-#include "xalloc.h"
-
-#ifndef EXIT_FAILURE
-# define EXIT_FAILURE 1
-#endif
 
 /* The following tests require AC_PREREQ(2.54).  */