summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2010-03-27 04:00:53 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2010-03-27 04:00:53 +0000
commit39f13cbc46731bdc2b94b0500b34437aabd9729e (patch)
treea58a36ed2ee8cb9f5bed9da5811de829d8331c7a /cpukit/libnetworking
parent2010-03-27 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-39f13cbc46731bdc2b94b0500b34437aabd9729e.tar.bz2
Add HAVE_STRINGS_H for better POSIX compliance.
Diffstat (limited to 'cpukit/libnetworking')
-rw-r--r--cpukit/libnetworking/libc/gethostbydns.c3
-rw-r--r--cpukit/libnetworking/libc/gethostbyht.c3
-rw-r--r--cpukit/libnetworking/libc/gethostnamadr.c3
-rw-r--r--cpukit/libnetworking/libc/getnetbyht.c3
-rw-r--r--cpukit/libnetworking/libc/linkaddr.c3
-rw-r--r--cpukit/libnetworking/libc/ns_print.c3
-rw-r--r--cpukit/libnetworking/libc/res_debug.c3
-rw-r--r--cpukit/libnetworking/libc/res_query.c3
-rw-r--r--cpukit/libnetworking/libc/res_send.c3
-rw-r--r--cpukit/libnetworking/libc/res_update.c3
10 files changed, 30 insertions, 0 deletions
diff --git a/cpukit/libnetworking/libc/gethostbydns.c b/cpukit/libnetworking/libc/gethostbydns.c
index 28c31713a0..880b81aa3e 100644
--- a/cpukit/libnetworking/libc/gethostbydns.c
+++ b/cpukit/libnetworking/libc/gethostbydns.c
@@ -69,6 +69,9 @@
#include <stdio.h>
#include <unistd.h>
#include <string.h>
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
#include <netdb.h>
#include <resolv.h>
#include <ctype.h>
diff --git a/cpukit/libnetworking/libc/gethostbyht.c b/cpukit/libnetworking/libc/gethostbyht.c
index 915adfc62c..4228b1c8c8 100644
--- a/cpukit/libnetworking/libc/gethostbyht.c
+++ b/cpukit/libnetworking/libc/gethostbyht.c
@@ -65,6 +65,9 @@
#include <ctype.h>
#include <errno.h>
#include <string.h>
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
#include <arpa/nameser.h> /* XXX */
#include <resolv.h> /* XXX */
#include <sys/fcntl.h>
diff --git a/cpukit/libnetworking/libc/gethostnamadr.c b/cpukit/libnetworking/libc/gethostnamadr.c
index 6fb3157299..213e29d292 100644
--- a/cpukit/libnetworking/libc/gethostnamadr.c
+++ b/cpukit/libnetworking/libc/gethostnamadr.c
@@ -36,6 +36,9 @@
#include <ctype.h>
#include <errno.h>
#include <string.h>
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
#include <arpa/nameser.h> /* XXX hack for _res */
#include <resolv.h> /* XXX hack for _res */
diff --git a/cpukit/libnetworking/libc/getnetbyht.c b/cpukit/libnetworking/libc/getnetbyht.c
index b44193045b..dbe2d68709 100644
--- a/cpukit/libnetworking/libc/getnetbyht.c
+++ b/cpukit/libnetworking/libc/getnetbyht.c
@@ -53,6 +53,9 @@
#include <netdb.h>
#include <stdio.h>
#include <string.h>
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
#define MAXALIASES 35
diff --git a/cpukit/libnetworking/libc/linkaddr.c b/cpukit/libnetworking/libc/linkaddr.c
index 1ec75bd376..b7962c55b7 100644
--- a/cpukit/libnetworking/libc/linkaddr.c
+++ b/cpukit/libnetworking/libc/linkaddr.c
@@ -41,6 +41,9 @@
#include <sys/socket.h>
#include <net/if_dl.h>
#include <string.h>
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
/* States*/
#define NAMING 0
diff --git a/cpukit/libnetworking/libc/ns_print.c b/cpukit/libnetworking/libc/ns_print.c
index 236a9c8aca..d8133c97d9 100644
--- a/cpukit/libnetworking/libc/ns_print.c
+++ b/cpukit/libnetworking/libc/ns_print.c
@@ -32,6 +32,9 @@
#include <errno.h>
#include <resolv.h>
#include <string.h>
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
#include <ctype.h>
#define SPRINTF(x) ((size_t)sprintf x)
diff --git a/cpukit/libnetworking/libc/res_debug.c b/cpukit/libnetworking/libc/res_debug.c
index c4792e3e72..e6e7cbfa04 100644
--- a/cpukit/libnetworking/libc/res_debug.c
+++ b/cpukit/libnetworking/libc/res_debug.c
@@ -115,6 +115,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
#include <time.h>
#define SPRINTF(x) sprintf x
diff --git a/cpukit/libnetworking/libc/res_query.c b/cpukit/libnetworking/libc/res_query.c
index 00a0c30041..b742c30315 100644
--- a/cpukit/libnetworking/libc/res_query.c
+++ b/cpukit/libnetworking/libc/res_query.c
@@ -84,6 +84,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
#include "res_config.h"
diff --git a/cpukit/libnetworking/libc/res_send.c b/cpukit/libnetworking/libc/res_send.c
index 3d8f823efc..b1dc337b41 100644
--- a/cpukit/libnetworking/libc/res_send.c
+++ b/cpukit/libnetworking/libc/res_send.c
@@ -92,6 +92,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
#include <unistd.h>
#if !defined(__rtems__)
#include <poll.h>
diff --git a/cpukit/libnetworking/libc/res_update.c b/cpukit/libnetworking/libc/res_update.c
index c35b6197b5..85c55694fe 100644
--- a/cpukit/libnetworking/libc/res_update.c
+++ b/cpukit/libnetworking/libc/res_update.c
@@ -37,6 +37,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
/*
* Separate a linked list of records into groups so that all records