Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/usr.bin/mktemp Pull up revision 1.5 (requested by thorp...
details: https://anonhg.NetBSD.org/src/rev/e508b8e43593
branches: netbsd-1-6
changeset: 529583:e508b8e43593
user: he <he%NetBSD.org@localhost>
date: Sat Nov 30 14:55:18 2002 +0000
description:
Pull up revision 1.5 (requested by thorpej in ticket #805):
Allow mktemp to build as a host tool.
diffstat:
usr.bin/mktemp/Makefile | 5 +++--
usr.bin/mktemp/mktemp.c | 19 +++++++++----------
2 files changed, 12 insertions(+), 12 deletions(-)
diffs (53 lines):
diff -r 5aaf870cd3e5 -r e508b8e43593 usr.bin/mktemp/Makefile
--- a/usr.bin/mktemp/Makefile Sat Nov 30 14:37:42 2002 +0000
+++ b/usr.bin/mktemp/Makefile Sat Nov 30 14:55:18 2002 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2002/04/01 13:54:01 bjh21 Exp $
-# From: $FreeBSD: src/usr.bin/mktemp/Makefile,v 1.1 1998/04/14 07:39:56 peter Exp $
+# $NetBSD: Makefile,v 1.4.2.1 2002/11/30 14:55:18 he Exp $
PROG= mktemp
+.ifndef HOSTPROG
.include <bsd.prog.mk>
+.endif
diff -r 5aaf870cd3e5 -r e508b8e43593 usr.bin/mktemp/mktemp.c
--- a/usr.bin/mktemp/mktemp.c Sat Nov 30 14:37:42 2002 +0000
+++ b/usr.bin/mktemp/mktemp.c Sat Nov 30 14:55:18 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mktemp.c,v 1.4 2002/04/01 13:54:01 bjh21 Exp $ */
+/* $NetBSD: mktemp.c,v 1.4.2.1 2002/11/30 14:55:18 he Exp $ */
/*-
* Copyright (c) 1994, 1995, 1996, 1998 Peter Wemm <peter%netplex.com.au@localhost>
@@ -36,7 +36,11 @@
* more like the OpenBSD version - which was first to publish the interface.
*/
-#include <sys/cdefs.h>
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <sys/types.h>
#include <err.h>
#include <paths.h>
#include <stdio.h>
@@ -44,14 +48,9 @@
#include <string.h>
#include <unistd.h>
-#ifndef lint
-#if 0
-static const char rcsid[] =
- "$FreeBSD: src/usr.bin/mktemp/mktemp.c,v 1.2 1998/05/05 06:13:47 charnier Exp $";
-#else
-__RCSID("$NetBSD: mktemp.c,v 1.4 2002/04/01 13:54:01 bjh21 Exp $");
-#endif
-#endif /* not lint */
+#if defined(__RCSID) && !defined(__lint)
+__RCSID("$NetBSD: mktemp.c,v 1.4.2.1 2002/11/30 14:55:18 he Exp $");
+#endif /* !__lint */
static void usage __P((void));
Home |
Main Index |
Thread Index |
Old Index