diff options
-rw-r--r-- | src/termcap.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/termcap.c b/src/termcap.c index a1bbab2d9d9..9462122677e 100644 --- a/src/termcap.c +++ b/src/termcap.c @@ -17,7 +17,15 @@ 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> + +/* Get the O_* definitions for open et al. */ +#include <sys/file.h> +#ifdef USG5 +#include <fcntl.h> +#endif + #else /* not HAVE_CONFIG_H */ #if defined(HAVE_STRING_H) || defined(STDC_HEADERS) |