summaryrefslogtreecommitdiff
path: root/src/system.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-05-27 11:41:00 +0000
committerJim Meyering <jim@meyering.net>1995-05-27 11:41:00 +0000
commita528bd5d9f309442440c5d189adb57e0cbae3e5e (patch)
tree5daeb4dd5788324dd7db4c342b4574a75d40fe2f /src/system.h
parent4662661e71d2a8e75d6dc6471837b5598b9c6499 (diff)
downloadcoreutils-a528bd5d9f309442440c5d189adb57e0cbae3e5e.tar.xz
[!STDC_HEADERS && HAVE_MEMORY_H]: Include memory.h.
Without this, SunOS doesn't get type for memchr. Reported by Kaveh Ghazi.
Diffstat (limited to 'src/system.h')
-rw-r--r--src/system.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/system.h b/src/system.h
index f67bbf014..cdd8f3e39 100644
--- a/src/system.h
+++ b/src/system.h
@@ -153,6 +153,9 @@ struct utimbuf
memcpy otherwise. */
#ifdef HAVE_STRING_H
+# if !STDC_HEADERS && HAVE_MEMORY_H
+# include <memory.h>
+# endif
# include <string.h>
#else
# include <strings.h>