summaryrefslogtreecommitdiff
path: root/libc/inet
diff options
context:
space:
mode:
Diffstat (limited to 'libc/inet')
-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];