changeset 25452:4d553f7390dc

Include <stdlib.h> if available.
author Andreas Schwab <schwab@suse.de>
date Mon, 30 Aug 1999 16:18:30 +0000
parents 786ab5197e4b
children 61fb4dde8684
files src/alloc.c src/emacs.c src/fileio.c
diffstat 3 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/alloc.c	Mon Aug 30 16:10:03 1999 +0000
+++ b/src/alloc.c	Mon Aug 30 16:18:30 1999 +0000
@@ -23,6 +23,11 @@
 #include <signal.h>
 
 #include <config.h>
+
+#ifdef STDC_HEADERS
+#include <stdlib.h>
+#endif
+
 #include "lisp.h"
 #include "intervals.h"
 #include "puresize.h"
--- a/src/emacs.c	Mon Aug 30 16:10:03 1999 +0000
+++ b/src/emacs.c	Mon Aug 30 16:18:30 1999 +0000
@@ -36,6 +36,10 @@
 #include <sys/ioctl.h>
 #endif
 
+#ifdef STDC_HEADERS
+#include <stdlib.h>
+#endif
+
 #include "lisp.h"
 #include "commands.h"
 #include "intervals.h"
--- a/src/fileio.c	Mon Aug 30 16:10:03 1999 +0000
+++ b/src/fileio.c	Mon Aug 30 16:18:30 1999 +0000
@@ -32,6 +32,10 @@
 #include <unistd.h>
 #endif
 
+#ifdef STDC_HEADERS
+#include <stdlib.h>
+#endif
+
 #if !defined (S_ISLNK) && defined (S_IFLNK)
 #  define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
 #endif