summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-06-12 19:36:16 +0000
committerEric Andersen <andersen@codepoet.org>2001-06-12 19:36:16 +0000
commit0e220f49469972d221479c0486c3300d53b6ea5f (patch)
tree39f69594ead503dd23138335b8ace8588c7b9eb7
parent87edfb6711f39cf607c2eabcb142b1d7c66a9d1b (diff)
Silence a few warnings.
-rw-r--r--libc/inet/getnetent.c2
-rw-r--r--libc/inet/inet_net.c2
-rw-r--r--libc/inet/ntop.c2
-rw-r--r--libc/inet/socketcalls.c2
4 files changed, 7 insertions, 1 deletions
diff --git a/libc/inet/getnetent.c b/libc/inet/getnetent.c
index a4b9f602c..9f58a8f8b 100644
--- a/libc/inet/getnetent.c
+++ b/libc/inet/getnetent.c
@@ -15,6 +15,8 @@
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
+#define __FORCE_GLIBC__
+#include <features.h>
#include <stdio.h>
#include <netdb.h>
#include <arpa/inet.h>
diff --git a/libc/inet/inet_net.c b/libc/inet/inet_net.c
index fd57fe1ac..1243b603b 100644
--- a/libc/inet/inet_net.c
+++ b/libc/inet/inet_net.c
@@ -32,6 +32,8 @@
* SUCH DAMAGE.
*/
+#define __FORCE_GLIBC__
+#include <features.h>
#include <ctype.h>
#include <netinet/in.h>
diff --git a/libc/inet/ntop.c b/libc/inet/ntop.c
index 02590fdab..6d7e691cc 100644
--- a/libc/inet/ntop.c
+++ b/libc/inet/ntop.c
@@ -15,6 +15,8 @@
* SOFTWARE.
*/
+#define __FORCE_GLIBC__
+#include <features.h>
#include <sys/param.h>
#include <sys/types.h>
#include <sys/socket.h>
diff --git a/libc/inet/socketcalls.c b/libc/inet/socketcalls.c
index 542910ba7..7b968cdb6 100644
--- a/libc/inet/socketcalls.c
+++ b/libc/inet/socketcalls.c
@@ -83,7 +83,7 @@ int getsockopt(int fd, int level, int optname, __ptr_t optval,
#endif
#ifdef L_listen
-int listen(int sockfd, unsigned int backlog)
+int listen(int sockfd, int backlog)
{
unsigned long args[2];