]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
[!STDC_HEADERS && HAVE_MEMORY_H]: Include memory.h.
authorJim Meyering <jim@meyering.net>
Sat, 27 May 1995 11:41:00 +0000 (11:41 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 27 May 1995 11:41:00 +0000 (11:41 +0000)
Without this, SunOS doesn't get type for memchr.
Reported by Kaveh Ghazi.

src/system.h

index f67bbf014863fe19d038a2f54989d1ec79762c21..cdd8f3e394fea29e70545d8b2bda8fe308cbe99a 100644 (file)
@@ -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>