Module Name:    src
Committed By:   christos
Date:           Mon Aug 17 16:26:03 UTC 2020

Modified Files:
        src/usr.bin/tsort: Makefile tsort.c

Log Message:
be host friendly


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/usr.bin/tsort/Makefile
cvs rdiff -u -r1.24 -r1.25 src/usr.bin/tsort/tsort.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/tsort/Makefile
diff -u src/usr.bin/tsort/Makefile:1.8 src/usr.bin/tsort/Makefile:1.9
--- src/usr.bin/tsort/Makefile:1.8	Wed Aug 12 19:23:04 2020
+++ src/usr.bin/tsort/Makefile	Mon Aug 17 12:26:03 2020
@@ -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>

Index: src/usr.bin/tsort/tsort.c
diff -u src/usr.bin/tsort/tsort.c:1.24 src/usr.bin/tsort/tsort.c:1.25
--- src/usr.bin/tsort/tsort.c:1.24	Wed Aug 12 19:23:04 2020
+++ src/usr.bin/tsort/tsort.c	Mon Aug 17 12:26:03 2020
@@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 19
 #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 @@ __RCSID("$NetBSD: tsort.c,v 1.24 2020/08
 #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

Reply via email to