diff options
author | David J. MacKenzie <djm@gnu.org> | 1995-09-02 23:47:41 +0000 |
---|---|---|
committer | David J. MacKenzie <djm@gnu.org> | 1995-09-02 23:47:41 +0000 |
commit | 2a18a8dba57b89d1f753a5c9c8bdc9c86d70fdb4 (patch) | |
tree | 0ee2bcad36e3f669cdb45fbb7b3c2f734742c398 | |
parent | 2c1cce6c3ca00fcab2cd3b0c45345f6494de8ebc (diff) | |
download | emacs-2a18a8dba57b89d1f753a5c9c8bdc9c86d70fdb4.tar.gz |
Don't assume that HAVE_CONFIG_H implies emacs.
-rw-r--r-- | src/termcap.c | 8 | ||||
-rw-r--r-- | src/tparam.c | 5 | ||||
-rw-r--r-- | 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 <config.h> +#endif + +#ifdef emacs /* Get the O_* definitions for open et al. */ #include <sys/file.h> @@ -26,7 +28,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <fcntl.h> #endif -#else /* not HAVE_CONFIG_H */ +#else /* not emacs */ #ifdef STDC_HEADERS #include <stdlib.h> @@ -49,7 +51,7 @@ char *realloc (); #include <fcntl.h> #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 <config.h> -#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 @@ -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 <config.h> -#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 |