diff options
| author | Andreas Schwab | 1999-08-30 16:18:30 +0000 |
|---|---|---|
| committer | Andreas Schwab | 1999-08-30 16:18:30 +0000 |
| commit | 92939d319a808c2f2162e079eadbdab2db813fcf (patch) | |
| tree | b2699d8e53681282685882623175b17ca28baa29 /src | |
| parent | 67ba84d17ae7219d3a6b10c5b72c85a273df0572 (diff) | |
| download | emacs-92939d319a808c2f2162e079eadbdab2db813fcf.tar.gz emacs-92939d319a808c2f2162e079eadbdab2db813fcf.zip | |
Include <stdlib.h> if available.
Diffstat (limited to 'src')
| -rw-r--r-- | src/alloc.c | 5 | ||||
| -rw-r--r-- | src/emacs.c | 4 | ||||
| -rw-r--r-- | src/fileio.c | 4 |
3 files changed, 13 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c index 571d6291c2b..258a610886d 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -23,6 +23,11 @@ Boston, MA 02111-1307, USA. */ | |||
| 23 | #include <signal.h> | 23 | #include <signal.h> |
| 24 | 24 | ||
| 25 | #include <config.h> | 25 | #include <config.h> |
| 26 | |||
| 27 | #ifdef STDC_HEADERS | ||
| 28 | #include <stdlib.h> | ||
| 29 | #endif | ||
| 30 | |||
| 26 | #include "lisp.h" | 31 | #include "lisp.h" |
| 27 | #include "intervals.h" | 32 | #include "intervals.h" |
| 28 | #include "puresize.h" | 33 | #include "puresize.h" |
diff --git a/src/emacs.c b/src/emacs.c index 34ab179dfde..49f6e239075 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -36,6 +36,10 @@ Boston, MA 02111-1307, USA. */ | |||
| 36 | #include <sys/ioctl.h> | 36 | #include <sys/ioctl.h> |
| 37 | #endif | 37 | #endif |
| 38 | 38 | ||
| 39 | #ifdef STDC_HEADERS | ||
| 40 | #include <stdlib.h> | ||
| 41 | #endif | ||
| 42 | |||
| 39 | #include "lisp.h" | 43 | #include "lisp.h" |
| 40 | #include "commands.h" | 44 | #include "commands.h" |
| 41 | #include "intervals.h" | 45 | #include "intervals.h" |
diff --git a/src/fileio.c b/src/fileio.c index e9f9a9872ef..332503840c9 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -32,6 +32,10 @@ Boston, MA 02111-1307, USA. */ | |||
| 32 | #include <unistd.h> | 32 | #include <unistd.h> |
| 33 | #endif | 33 | #endif |
| 34 | 34 | ||
| 35 | #ifdef STDC_HEADERS | ||
| 36 | #include <stdlib.h> | ||
| 37 | #endif | ||
| 38 | |||
| 35 | #if !defined (S_ISLNK) && defined (S_IFLNK) | 39 | #if !defined (S_ISLNK) && defined (S_IFLNK) |
| 36 | # define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) | 40 | # define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) |
| 37 | #endif | 41 | #endif |