summaryrefslogtreecommitdiff
path: root/src/emacs.c
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2000-08-28 15:03:29 +0000
committerGerd Moellmann <gerd@gnu.org>2000-08-28 15:03:29 +0000
commita847af86f51bca4cc75993a6c7c3fbee952391a9 (patch)
tree6283a1520131661766bf5b9b843361d31d9fda46 /src/emacs.c
parentdb2144080c0b08b93ffaa2579fe7b66863688eff (diff)
downloademacs-a847af86f51bca4cc75993a6c7c3fbee952391a9.tar.gz
(toplevel) [HAVE_STRING_H]: Include string.h.
(toplevel) [HAVE_STRINGS_H]: Include strings.h. (index): Remove prototypes which might conflict with non-standard definitions of index/strchr.
Diffstat (limited to 'src/emacs.c')
-rw-r--r--src/emacs.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 8527736cb03..e91fca2eb01 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -60,6 +60,14 @@ Boston, MA 02111-1307, USA. */
#include <sys/resource.h>
#endif
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
#ifndef O_RDWR
#define O_RDWR 2
#endif
@@ -73,7 +81,6 @@ Boston, MA 02111-1307, USA. */
extern void malloc_warning P_ ((char *));
extern void set_time_zone_rule P_ ((char *));
-extern char *index P_ ((const char *, int));
/* Make these values available in GDB, which doesn't see macros. */