summaryrefslogtreecommitdiff
path: root/ext/SDBM_File
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-08-27 13:01:26 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-08-27 13:01:26 +0000
commit5518ecd4c71d9e274b4e6a0c6a7d04bade4a7cd9 (patch)
tree7f8e4148950561612212359e19dce88e5b4a7e76 /ext/SDBM_File
parentd6f9c1819f8d900fa247c93667024fea72fc153f (diff)
downloadperl-5518ecd4c71d9e274b4e6a0c6a7d04bade4a7cd9.tar.gz
Ultrix tweaks: <string.h> must not be included twice
(otherwise one gets prototype conflicts between the <string.h> and proto.h because Ultrix thinks e.g. Perl_ninstr has been define in <string.h>...); and Configure misprobes some features. p4raw-id: //depot/perl@20916
Diffstat (limited to 'ext/SDBM_File')
-rw-r--r--ext/SDBM_File/sdbm/sdbm.c4
-rw-r--r--ext/SDBM_File/sdbm/sdbm.h6
2 files changed, 7 insertions, 3 deletions
diff --git a/ext/SDBM_File/sdbm/sdbm.c b/ext/SDBM_File/sdbm/sdbm.c
index 31889d97f3..a3c4acfb3d 100644
--- a/ext/SDBM_File/sdbm/sdbm.c
+++ b/ext/SDBM_File/sdbm/sdbm.c
@@ -24,7 +24,9 @@
#endif
#ifdef I_STRING
-# include <string.h>
+# ifndef __ultrix__
+# include <string.h>
+# endif
#else
# include <strings.h>
#endif
diff --git a/ext/SDBM_File/sdbm/sdbm.h b/ext/SDBM_File/sdbm/sdbm.h
index 86ba82d82f..8405fea9a9 100644
--- a/ext/SDBM_File/sdbm/sdbm.h
+++ b/ext/SDBM_File/sdbm/sdbm.h
@@ -186,9 +186,11 @@ Free_t Perl_mfree proto((Malloc_t where));
#endif /* MYMALLOC */
#ifdef I_STRING
-#include <string.h>
+# ifndef __ultrix__
+# include <string.h>
+# endif
#else
-#include <strings.h>
+# include <strings.h>
#endif
#ifdef I_MEMORY