/* 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>
#include <fcntl.h>
#endif
-#else /* not HAVE_CONFIG_H */
+#else /* not emacs */
#ifdef STDC_HEADERS
#include <stdlib.h>
#include <fcntl.h>
#endif
-#endif /* not HAVE_CONFIG_H */
+#endif /* not emacs */
#ifndef NULL
#define NULL (char *) 0
/* 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
char *realloc ();
#endif
-#endif /* not HAVE_CONFIG_H */
+#endif /* not emacs */
#ifndef NULL
#define NULL (char *) 0
/* 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
char *realloc ();
#endif
-#endif /* not HAVE_CONFIG_H */
+#endif /* not emacs */
#ifndef NULL
#define NULL (char *) 0