summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Blundell <pb@futuretv.com>2000-06-04 21:04:03 +0000
committerPhil Blundell <pb@futuretv.com>2000-06-04 21:04:03 +0000
commit8ce69766ffa3f2f92905d1c190f01ab7b587edbc (patch)
treea8509220316ad710432c480a662a6a29ddeb039e
parent9b1b5bb457c63ddea7ddb2ca930f34e9deefddb2 (diff)
downloadgdb-8ce69766ffa3f2f92905d1c190f01ab7b587edbc.tar.gz
2000-06-04 Philippe De Muyter <phdm@macqel.be>binutils-2_10
* explodename.c: Include stdlib.h and string.h only if they exist. Use strings.h eventually. (already in gettext-0.10.35 since 1998-04-27)
-rw-r--r--intl/ChangeLog5
-rw-r--r--intl/explodename.c13
2 files changed, 15 insertions, 3 deletions
diff --git a/intl/ChangeLog b/intl/ChangeLog
index ecff6f6b2cd..d9d86dd7d1a 100644
--- a/intl/ChangeLog
+++ b/intl/ChangeLog
@@ -1,3 +1,8 @@
+2000-06-04 Philippe De Muyter <phdm@macqel.be>
+
+ * explodename.c: Include stdlib.h and string.h only if they exist.
+ Use strings.h eventually. (already in gettext-0.10.35 since 1998-04-27)
+
1997-09-06 02:10 Ulrich Drepper <drepper@cygnus.com>
* intlh.inst.in: Reformat copyright.
diff --git a/intl/explodename.c b/intl/explodename.c
index 37c46e9d7b8..8066dc29962 100644
--- a/intl/explodename.c
+++ b/intl/explodename.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995.
This program is free software; you can redistribute it and/or modify
@@ -19,8 +19,15 @@
# include <config.h>
#endif
-#include <stdlib.h>
-#include <string.h>
+#if defined STDC_HEADERS || defined _LIBC
+# include <stdlib.h>
+#endif
+
+#if defined HAVE_STRING_H || defined _LIBC
+# include <string.h>
+#else
+# include <strings.h>
+#endif
#include <sys/types.h>
#include "loadinfo.h"