summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2006-01-17 15:41:53 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2006-01-17 15:41:53 +0000
commit5b2a47a815677a8a8cf11796847537266d7bc6d7 (patch)
tree1068d3cf7ecf40a5deca8f0956630a31e5dc2976 /lib
parent63decd4a9aa176a8db1a75baae9c99da30b7a2eb (diff)
Include limits.h directly instead of depending on another header
to include it for us.
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>