Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/tsort be host friendly



details:   https://anonhg.NetBSD.org/src/rev/ac0544f242cc
branches:  trunk
changeset: 942737:ac0544f242cc
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Aug 17 16:26:03 2020 +0000

description:
be host friendly

diffstat:

 usr.bin/tsort/Makefile |  5 ++++-
 usr.bin/tsort/tsort.c  |  6 ++++--
 2 files changed, 8 insertions(+), 3 deletions(-)

diffs (45 lines):

diff -r 3ba65db03e68 -r ac0544f242cc usr.bin/tsort/Makefile
--- a/usr.bin/tsort/Makefile    Mon Aug 17 16:26:02 2020 +0000
+++ b/usr.bin/tsort/Makefile    Mon Aug 17 16:26:03 2020 +0000
@@ -1,9 +1,12 @@
-#      $NetBSD: Makefile,v 1.8 2020/08/12 23:23:04 christos Exp $
+#      $NetBSD: Makefile,v 1.9 2020/08/17 16:26:03 christos Exp $
 #      @(#)Makefile    8.1 (Berkeley) 6/9/93
 
+.include <bsd.own.mk>
 WARNS= 6
 PROG=  tsort
+.if !defined(HOSTPROGNAME)
 LDADD+= -lutil
 DPADD+= ${LIBUTIL}
+.endif
 
 .include <bsd.prog.mk>
diff -r 3ba65db03e68 -r ac0544f242cc usr.bin/tsort/tsort.c
--- a/usr.bin/tsort/tsort.c     Mon Aug 17 16:26:02 2020 +0000
+++ b/usr.bin/tsort/tsort.c     Mon Aug 17 16:26:03 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tsort.c,v 1.24 2020/08/12 23:23:04 christos Exp $      */
+/*     $NetBSD: tsort.c,v 1.25 2020/08/17 16:26:03 christos Exp $      */
 
 /*
  * Copyright (c) 1989, 1993, 1994
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)tsort.c    8.3 (Berkeley) 5/4/95";
 #endif
-__RCSID("$NetBSD: tsort.c,v 1.24 2020/08/12 23:23:04 christos Exp $");
+__RCSID("$NetBSD: tsort.c,v 1.25 2020/08/17 16:26:03 christos Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -56,7 +56,9 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#if !HAVE_NBTOOL_CONFIG_H
 #include <util.h>
+#endif
 
 /*
  *  Topological sort.  Input is a list of pairs of strings separated by



Home | Main Index | Thread Index | Old Index