From c70c27055d0cd10097196099b5429af2e9638d08 Mon Sep 17 00:00:00 2001 From: "David J. MacKenzie" Date: Sat, 2 Sep 1995 23:47:41 +0000 Subject: [PATCH] Don't assume that HAVE_CONFIG_H implies emacs. --- src/termcap.c | 8 +++++--- src/tparam.c | 5 +++-- tparam.c | 5 +++-- 3 files changed, 11 insertions(+), 7 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. */ /* Emacs config.h may rename various library functions such as malloc. */ #ifdef HAVE_CONFIG_H - #include +#endif + +#ifdef emacs /* Get the O_* definitions for open et al. */ #include @@ -26,7 +28,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #endif -#else /* not HAVE_CONFIG_H */ +#else /* not emacs */ #ifdef STDC_HEADERS #include @@ -49,7 +51,7 @@ char *realloc (); #include #endif -#endif /* not HAVE_CONFIG_H */ +#endif /* not emacs */ #ifndef NULL #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. */ /* Emacs config.h may rename various library functions such as malloc. */ #ifdef HAVE_CONFIG_H #include -#else /* not HAVE_CONFIG_H */ +#endif +#ifndef emacs #if defined(HAVE_STRING_H) || defined(STDC_HEADERS) #define bcopy(s, d, n) memcpy ((d), (s), (n)) #endif @@ -32,7 +33,7 @@ char *malloc (); char *realloc (); #endif -#endif /* not HAVE_CONFIG_H */ +#endif /* not emacs */ #ifndef NULL #define NULL (char *) 0 diff --git a/tparam.c b/tparam.c index 24702899a83..a5ee362eaa4 100644 --- a/tparam.c +++ b/tparam.c @@ -18,8 +18,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ /* Emacs config.h may rename various library functions such as malloc. */ #ifdef HAVE_CONFIG_H #include -#else /* not HAVE_CONFIG_H */ +#endif +#ifndef emacs #if defined(HAVE_STRING_H) || defined(STDC_HEADERS) #define bcopy(s, d, n) memcpy ((d), (s), (n)) #endif @@ -32,7 +33,7 @@ char *malloc (); char *realloc (); #endif -#endif /* not HAVE_CONFIG_H */ +#endif /* not emacs */ #ifndef NULL #define NULL (char *) 0 -- 2.39.2