Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/mklocale Include <arpa/inet.h> for ntohl and htonl o...



details:   https://anonhg.NetBSD.org/src/rev/7492824e43c1
branches:  trunk
changeset: 526177:7492824e43c1
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Fri Apr 26 18:04:58 2002 +0000

description:
Include <arpa/inet.h> for ntohl and htonl on POSIX systems.
Also include its prerequisites for compiling on older NetBSD versions.

diffstat:

 usr.bin/mklocale/yacc.y |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r e33f495fcf74 -r 7492824e43c1 usr.bin/mklocale/yacc.y
--- a/usr.bin/mklocale/yacc.y   Fri Apr 26 18:01:21 2002 +0000
+++ b/usr.bin/mklocale/yacc.y   Fri Apr 26 18:04:58 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: yacc.y,v 1.9 2002/03/17 22:14:38 tshiozak Exp $        */
+/*     $NetBSD: yacc.y,v 1.10 2002/04/26 18:04:58 bjh21 Exp $  */
 
 %{
 /*-
@@ -47,10 +47,14 @@
 static char sccsid[] = "@(#)yacc.y     8.1 (Berkeley) 6/6/93";
 static char rcsid[] = "$FreeBSD$";
 #else
-__RCSID("$NetBSD: yacc.y,v 1.9 2002/03/17 22:14:38 tshiozak Exp $");
+__RCSID("$NetBSD: yacc.y,v 1.10 2002/04/26 18:04:58 bjh21 Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
+#include <sys/types.h>
+#include <netinet/in.h>        /* Needed by <arpa/inet.h> on NetBSD 1.5. */
+#include <arpa/inet.h> /* Needed for htonl on POSIX systems. */
+
 #include <ctype.h>
 #include <err.h>
 #if !defined(__FreeBSD__)



Home | Main Index | Thread Index | Old Index