blob: 2eefc4099fa463e4b0f9e945b7aa3bc4f28016d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
diff --git a/xmalloc.c b/xmalloc.c
index a2c7689..dd00346 100644
--- a/xmalloc.c
+++ b/xmalloc.c
@@ -29,6 +29,7 @@
#if STDC_HEADERS
# include <stdlib.h>
+# include <string.h>
#else
VOID *calloc ();
VOID *malloc ();
diff --git a/system.h b/system.h
index 993dd36..b9fee80 100644
--- a/system.h
+++ b/system.h
@@ -159,20 +159,7 @@ struct utimbuf
/* Don't use bcopy! Use memmove if source and destination may overlap,
memcpy otherwise. */
-
-#ifdef HAVE_STRING_H
-# if !STDC_HEADERS && HAVE_MEMORY_H
-# include <memory.h>
-# endif
-# include <string.h>
-#else
-# ifndef HAVE_STRCHR
-# define strchr index
-# define strrchr rindex
-# endif /* HAVE_STRCHR */
-char *strchr(), *strrchr();
-char *memchr ();
-#endif
+#include <string.h>
#include <errno.h>
#ifndef errno
|