diff 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
line wrap: on
line diff
--- a/src/termcap.c	Sat Sep 02 16:36:41 1995 +0000
+++ b/src/termcap.c	Sat Sep 02 23:47:41 1995 +0000
@@ -17,8 +17,10 @@
 
 /* Emacs config.h may rename various library functions such as malloc.  */
 #ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 
-#include <config.h>
+#ifdef emacs
 
 /* Get the O_* definitions for open et al.  */
 #include <sys/file.h>
@@ -26,7 +28,7 @@
 #include <fcntl.h>
 #endif
 
-#else /* not HAVE_CONFIG_H */
+#else /* not emacs */
 
 #ifdef STDC_HEADERS
 #include <stdlib.h>
@@ -49,7 +51,7 @@
 #include <fcntl.h>
 #endif
 
-#endif /* not HAVE_CONFIG_H */
+#endif /* not emacs */
 
 #ifndef NULL
 #define NULL (char *) 0