Browse Source

Silence a few warnings.

Eric Andersen 23 years ago
parent
commit
0e220f4946
4 changed files with 7 additions and 1 deletions
  1. 2 0
      libc/inet/getnetent.c
  2. 2 0
      libc/inet/inet_net.c
  3. 2 0
      libc/inet/ntop.c
  4. 1 1
      libc/inet/socketcalls.c

+ 2 - 0
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>

+ 2 - 0
libc/inet/inet_net.c

@@ -32,6 +32,8 @@
  * SUCH DAMAGE.
  */
 
+#define __FORCE_GLIBC__
+#include <features.h>
 #include <ctype.h>
 #include <netinet/in.h>
 

+ 2 - 0
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>

+ 1 - 1
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];