summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/net/getprotoent.c3
-rw-r--r--lib/libc/net/getservent.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/net/getprotoent.c b/lib/libc/net/getprotoent.c
index 7e6edc93299..7c6ab681664 100644
--- a/lib/libc/net/getprotoent.c
+++ b/lib/libc/net/getprotoent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getprotoent.c,v 1.8 2005/08/06 20:30:03 espie Exp $ */
+/* $OpenBSD: getprotoent.c,v 1.9 2006/01/17 15:41:52 millert Exp $ */
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
@@ -32,6 +32,7 @@
#include <sys/socket.h>
#include <errno.h>
+#include <limits.h>
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/lib/libc/net/getservent.c b/lib/libc/net/getservent.c
index 6c1ecce78da..ab916b8e80f 100644
--- a/lib/libc/net/getservent.c
+++ b/lib/libc/net/getservent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getservent.c,v 1.10 2005/08/06 20:30:03 espie Exp $ */
+/* $OpenBSD: getservent.c,v 1.11 2006/01/17 15:41:52 millert Exp $ */
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
@@ -32,6 +32,7 @@
#include <sys/socket.h>
#include <errno.h>
+#include <limits.h>
#include <netdb.h>
#include <stdio.h>
#include <string.h>