Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/gencat Include <arpa/inet.h> to get htonl(). This i...



details:   https://anonhg.NetBSD.org/src/rev/bee185ef918f
branches:  trunk
changeset: 526066:bee185ef918f
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Wed Apr 24 17:49:52 2002 +0000

description:
Include <arpa/inet.h> to get htonl().  This is necessary on Solaris, and
POSIX says that's the right header for it.

diffstat:

 usr.bin/gencat/gencat.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r bcc8957912b6 -r bee185ef918f usr.bin/gencat/gencat.c
--- a/usr.bin/gencat/gencat.c   Wed Apr 24 17:45:55 2002 +0000
+++ b/usr.bin/gencat/gencat.c   Wed Apr 24 17:49:52 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gencat.c,v 1.14 2002/01/31 22:43:54 tv Exp $   */
+/*     $NetBSD: gencat.c,v 1.15 2002/04/24 17:49:52 bjh21 Exp $        */
 
 /*
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: gencat.c,v 1.14 2002/01/31 22:43:54 tv Exp $");
+__RCSID("$NetBSD: gencat.c,v 1.15 2002/04/24 17:49:52 bjh21 Exp $");
 #endif
 
 /***********************************************************
@@ -80,6 +80,9 @@
 #define _NLS_PRIVATE
 
 #include <sys/queue.h>
+
+#include <arpa/inet.h> /* for htonl() */
+
 #include <ctype.h>
 #include <err.h>
 #include <fcntl.h>



Home | Main Index | Thread Index | Old Index