aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid J. MacKenzie1995-09-02 23:47:41 +0000
committerDavid J. MacKenzie1995-09-02 23:47:41 +0000
commitc70c27055d0cd10097196099b5429af2e9638d08 (patch)
treeadc1a5074b23ae29c0c408a813d5056631cfaccf /src
parentbccfd93664e262dcdb92eb820a2d8d83d018452d (diff)
downloademacs-c70c27055d0cd10097196099b5429af2e9638d08.tar.gz
emacs-c70c27055d0cd10097196099b5429af2e9638d08.zip
Don't assume that HAVE_CONFIG_H implies emacs.
Diffstat (limited to 'src')
-rw-r--r--src/termcap.c8
-rw-r--r--src/tparam.c5
2 files changed, 8 insertions, 5 deletions
diff --git a/src/termcap.c b/src/termcap.c
index 2a270c454eb..595fc425c18 100644
--- a/src/termcap.c
+++ b/src/termcap.c
@@ -17,8 +17,10 @@ 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>
@@ -26,7 +28,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
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>
@@ -49,7 +51,7 @@ char *realloc ();
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
diff --git a/src/tparam.c b/src/tparam.c
index 24702899a83..a5ee362eaa4 100644
--- a/src/tparam.c
+++ b/src/tparam.c
@@ -18,8 +18,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
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#include <config.h> 20#include <config.h>
21#else /* not HAVE_CONFIG_H */ 21#endif
22 22
23#ifndef emacs
23#if defined(HAVE_STRING_H) || defined(STDC_HEADERS) 24#if defined(HAVE_STRING_H) || defined(STDC_HEADERS)
24#define bcopy(s, d, n) memcpy ((d), (s), (n)) 25#define bcopy(s, d, n) memcpy ((d), (s), (n))
25#endif 26#endif
@@ -32,7 +33,7 @@ char *malloc ();
32char *realloc (); 33char *realloc ();
33#endif 34#endif
34 35
35#endif /* not HAVE_CONFIG_H */ 36#endif /* not emacs */
36 37
37#ifndef NULL 38#ifndef NULL
38#define NULL (char *) 0 39#define NULL (char *) 0