]> git.eshelyaron.com Git - emacs.git/commitdiff
(bcopy, bzero, bcmp): Define only if HAVE_BCOPY is not defined.
authorEli Zaretskii <eliz@gnu.org>
Fri, 19 Apr 2002 10:11:57 +0000 (10:11 +0000)
committerEli Zaretskii <eliz@gnu.org>
Fri, 19 Apr 2002 10:11:57 +0000 (10:11 +0000)
src/s/sol2-5.h

index 9931e97d375b30a4f9c705141b5acc33aca68e22..6a7a550c956c33e40df19317629be041bf23effd 100644 (file)
 
 #undef USE_MMAP_FOR_BUFFERS
 
+/* Newer versions of Solaris have bcopy etc. as functions, with
+   prototypes in strings.h.  They lose if the defines from usg5-4.h
+   are visible, which happens when X headers are included.  */
+#ifdef HAVE_BCOPY
+#undef bcopy
+#undef bzero
+#undef bcmp
+#ifndef NOT_C_CODE
+#include <strings.h>
+#endif
+#endif
+
 #if 0 /* A recent patch in unexelf.c should eliminate the need for this.  */
 /* Don't use the shared libraries for -lXt and -lXaw,
    to work around a linker bug in Solaris 2.5.