summaryrefslogtreecommitdiff
path: root/libc/inet
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2008-05-27 15:53:32 +0000
committerCarmelo Amoroso <carmelo.amoroso@st.com>2008-05-27 15:53:32 +0000
commit9811a4df8aaee7c01eb69dee4d368f5cdb25d48d (patch)
tree3c74937556ec618f5e533625e0eaab209734234c /libc/inet
parent06607b674f434b912cc5840253c376c572f2477e (diff)
Fix build failure due to missing 'smallint' definition
by adding <unistd.h> header file. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'libc/inet')
-rw-r--r--libc/inet/getnetbyad.c1
-rw-r--r--libc/inet/getnetbynm.c1
-rw-r--r--libc/inet/getnetent.c1
-rw-r--r--libc/inet/getproto.c1
-rw-r--r--libc/inet/getservice.c1
-rw-r--r--libc/inet/resolv.c1
6 files changed, 5 insertions, 1 deletions
diff --git a/libc/inet/getnetbyad.c b/libc/inet/getnetbyad.c
index 06b0c4bd6..c916a18cf 100644
--- a/libc/inet/getnetbyad.c
+++ b/libc/inet/getnetbyad.c
@@ -18,6 +18,7 @@
#define __FORCE_GLIBC
#include <features.h>
#include <netdb.h>
+#include <unistd.h>
libc_hidden_proto(setnetent)
libc_hidden_proto(getnetent)
diff --git a/libc/inet/getnetbynm.c b/libc/inet/getnetbynm.c
index edb610533..9f3655121 100644
--- a/libc/inet/getnetbynm.c
+++ b/libc/inet/getnetbynm.c
@@ -19,6 +19,7 @@
#include <features.h>
#include <netdb.h>
#include <string.h>
+#include <unistd.h>
/* Experimentally off - libc_hidden_proto(strcmp) */
libc_hidden_proto(setnetent)
diff --git a/libc/inet/getnetent.c b/libc/inet/getnetent.c
index b22cc2a5c..d9122f4e2 100644
--- a/libc/inet/getnetent.c
+++ b/libc/inet/getnetent.c
@@ -22,6 +22,7 @@
#include <malloc.h>
#include <netdb.h>
#include <arpa/inet.h>
+#include <unistd.h>
libc_hidden_proto(fopen)
libc_hidden_proto(fclose)
diff --git a/libc/inet/getproto.c b/libc/inet/getproto.c
index 5ee003906..7f3b4e30f 100644
--- a/libc/inet/getproto.c
+++ b/libc/inet/getproto.c
@@ -61,6 +61,7 @@
#include <string.h>
#include <malloc.h>
#include <errno.h>
+#include <unistd.h>
libc_hidden_proto(fopen)
/* Experimentally off - libc_hidden_proto(strcmp) */
diff --git a/libc/inet/getservice.c b/libc/inet/getservice.c
index 98bbc7cc5..c8ee77559 100644
--- a/libc/inet/getservice.c
+++ b/libc/inet/getservice.c
@@ -63,6 +63,7 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#include <errno.h>
+#include <unistd.h>
/* Experimentally off - libc_hidden_proto(strcmp) */
/* Experimentally off - libc_hidden_proto(strpbrk) */
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c
index a6bee2589..d0c309d95 100644
--- a/libc/inet/resolv.c
+++ b/libc/inet/resolv.c
@@ -1061,7 +1061,6 @@ void attribute_hidden __open_nameservers(void)
#define RESOLV_ARGS 5
char szBuffer[128], *p, *argv[RESOLV_ARGS];
int argc;
- /* int rv = 0; */
__UCLIBC_MUTEX_LOCK(__resolv_lock);
if (__nameservers > 0)