Mercurial > emacs
comparison src/termcap.c @ 12994:bd38619285f7
Don't assume that HAVE_CONFIG_H implies emacs.
author | David J. MacKenzie <djm@gnu.org> |
---|---|
date | Sat, 02 Sep 1995 23:47:41 +0000 |
parents | 6cae53a06172 |
children | ad4eada50462 |
comparison
equal
deleted
inserted
replaced
12993:13b9311103c8 | 12994:bd38619285f7 |
---|---|
15 along with this program; see the file COPYING. If not, write to | 15 along with this program; see the file COPYING. If not, write to |
16 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | 16 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ |
17 | 17 |
18 /* Emacs config.h may rename various library functions such as malloc. */ | 18 /* Emacs config.h may rename various library functions such as malloc. */ |
19 #ifdef HAVE_CONFIG_H | 19 #ifdef HAVE_CONFIG_H |
20 | |
21 #include <config.h> | 20 #include <config.h> |
21 #endif | |
22 | |
23 #ifdef emacs | |
22 | 24 |
23 /* Get the O_* definitions for open et al. */ | 25 /* Get the O_* definitions for open et al. */ |
24 #include <sys/file.h> | 26 #include <sys/file.h> |
25 #ifdef USG5 | 27 #ifdef USG5 |
26 #include <fcntl.h> | 28 #include <fcntl.h> |
27 #endif | 29 #endif |
28 | 30 |
29 #else /* not HAVE_CONFIG_H */ | 31 #else /* not emacs */ |
30 | 32 |
31 #ifdef STDC_HEADERS | 33 #ifdef STDC_HEADERS |
32 #include <stdlib.h> | 34 #include <stdlib.h> |
33 #include <string.h> | 35 #include <string.h> |
34 #else | 36 #else |
47 #endif | 49 #endif |
48 #ifdef _POSIX_VERSION | 50 #ifdef _POSIX_VERSION |
49 #include <fcntl.h> | 51 #include <fcntl.h> |
50 #endif | 52 #endif |
51 | 53 |
52 #endif /* not HAVE_CONFIG_H */ | 54 #endif /* not emacs */ |
53 | 55 |
54 #ifndef NULL | 56 #ifndef NULL |
55 #define NULL (char *) 0 | 57 #define NULL (char *) 0 |
56 #endif | 58 #endif |
57 | 59 |