summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2007-03-29 14:25:40 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2007-03-29 14:25:40 +0000
commit0f0318e2de9509ba143fce015c14ee1671a6e5b7 (patch)
tree4484df0ea46eed28786abde20d9a456e6535ace3
parent2007-03-29 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-0f0318e2de9509ba143fce015c14ee1671a6e5b7.tar.bz2
2007-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/libc/strsep.c: Don't build if provided by libc.
-rw-r--r--cpukit/ChangeLog1
-rw-r--r--cpukit/libnetworking/libc/strsep.c7
2 files changed, 8 insertions, 0 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index d2448bd24c..a4b19281dd 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,5 +1,6 @@
2007-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
+ * libnetworking/libc/strsep.c: Don't build if provided by libc.
* libnetworking/libc/rcmd.c: Eliminate __P(). Cosmetics.
* libnetworking/sys/select.h: Remove selrecord, selwakeup (Unused).
* libnetworking/netinet/ip_output.c: Preps to eliminate _IP_VHL
diff --git a/cpukit/libnetworking/libc/strsep.c b/cpukit/libnetworking/libc/strsep.c
index 182319493d..624a1e13f8 100644
--- a/cpukit/libnetworking/libc/strsep.c
+++ b/cpukit/libnetworking/libc/strsep.c
@@ -37,6 +37,12 @@
static const char sccsid[] = "@(#)strsep.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#if !HAVE_STRSEP
+
#include <string.h>
#include <stdio.h>
@@ -83,3 +89,4 @@ strsep(stringp, delim)
}
/* NOTREACHED */
}
+#endif