summaryrefslogtreecommitdiff
path: root/usr.bin/msgc/msgdb.c
diff options
context:
space:
mode:
authorjmc <jmc@NetBSD.org>2004-06-20 22:20:14 +0000
committerjmc <jmc@NetBSD.org>2004-06-20 22:20:14 +0000
commitb2f782612fe8c90c33dbac39f46b984e155e9d35 (patch)
tree621fd229ae597b565c516ab4afd72b041cdfa672 /usr.bin/msgc/msgdb.c
parentfa985b27a7846ade156387f98a002515d72661d9 (diff)
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of NetBSD harder, not easier (and also makes the resulting tools 'different') Wrap all required code with the inclusion of nbtool_config.h, attempt to only use POSIX code in all places (or when reasonable test w. configure and provide definitions: ala u_int, etc). Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86 NetBSD current (x86 and amd64) and Solaris 9. Fixes PR's: PR#17762 PR#25944
Diffstat (limited to 'usr.bin/msgc/msgdb.c')
-rw-r--r--usr.bin/msgc/msgdb.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/msgc/msgdb.c b/usr.bin/msgc/msgdb.c
index f2c9fe394df..f548668c3e2 100644
--- a/usr.bin/msgc/msgdb.c
+++ b/usr.bin/msgc/msgdb.c
@@ -1,4 +1,4 @@
-/* $NetBSD: msgdb.c,v 1.19 2003/09/25 18:32:10 dsl Exp $ */
+/* $NetBSD: msgdb.c,v 1.20 2004/06/20 22:20:16 jmc Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -38,10 +38,14 @@
/* mdb.c - message database manipulation */
+#if HAVE_NBTOOL_CONFIG_H
+#include "nbtool_config.h"
+#endif
+
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: msgdb.c,v 1.19 2003/09/25 18:32:10 dsl Exp $");
+__RCSID("$NetBSD: msgdb.c,v 1.20 2004/06/20 22:20:16 jmc Exp $");
#endif