Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/sortinfo Fix tools build.



details:   https://anonhg.NetBSD.org/src/rev/8cd22a904293
branches:  trunk
changeset: 342380:8cd22a904293
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Dec 19 17:30:00 2015 +0000

description:
Fix tools build.

diffstat:

 usr.bin/sortinfo/Makefile   |  4 +++-
 usr.bin/sortinfo/sortinfo.c |  8 ++++++--
 2 files changed, 9 insertions(+), 3 deletions(-)

diffs (39 lines):

diff -r f3383a3750b6 -r 8cd22a904293 usr.bin/sortinfo/Makefile
--- a/usr.bin/sortinfo/Makefile Sat Dec 19 14:57:49 2015 +0000
+++ b/usr.bin/sortinfo/Makefile Sat Dec 19 17:30:00 2015 +0000
@@ -1,9 +1,11 @@
-#      $NetBSD: Makefile,v 1.1 2015/12/18 18:56:47 christos Exp $
+#      $NetBSD: Makefile,v 1.2 2015/12/19 17:30:00 joerg Exp $
 
 WARNS=6
 PROG=sortinfo
 
+.ifndef HOSTPROG
 LDADD+=-lutil
 DPADD+=${LIBUTIL}
+.endif
 
 .include <bsd.prog.mk>
diff -r f3383a3750b6 -r 8cd22a904293 usr.bin/sortinfo/sortinfo.c
--- a/usr.bin/sortinfo/sortinfo.c       Sat Dec 19 14:57:49 2015 +0000
+++ b/usr.bin/sortinfo/sortinfo.c       Sat Dec 19 17:30:00 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sortinfo.c,v 1.1 2015/12/18 18:56:47 christos Exp $    */
+/*     $NetBSD: sortinfo.c,v 1.2 2015/12/19 17:30:00 joerg Exp $       */
 
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -29,8 +29,12 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
+#if HAVE_NBTOOL_CONFIG_H
+#include "nbtool_config.h"
+#endif
+
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: sortinfo.c,v 1.1 2015/12/18 18:56:47 christos Exp $");
+__RCSID("$NetBSD: sortinfo.c,v 1.2 2015/12/19 17:30:00 joerg Exp $");
 
 /*
  * Sort a texinfo(1) directory file.



Home | Main Index | Thread Index | Old Index