Add HAVE_STRINGS_H for better POSIX compliance.

This commit is contained in:
Ralf Corsepius
2010-03-27 04:00:53 +00:00
parent b1bac8d46a
commit 39f13cbc46
10 changed files with 30 additions and 0 deletions
+3
View File
@@ -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>
+3
View File
@@ -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>
@@ -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 */
+3
View File
@@ -53,6 +53,9 @@
#include <netdb.h>
#include <stdio.h>
#include <string.h>
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif
#define MAXALIASES 35
+3
View File
@@ -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
+3
View File
@@ -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)
+3
View File
@@ -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
+3
View File
@@ -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"
+3
View File
@@ -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>
+3
View File
@@ -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