Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/uudecode Make this compilable as a host tool.



details:   https://anonhg.NetBSD.org/src/rev/b2c6a70b4f39
branches:  trunk
changeset: 521510:b2c6a70b4f39
user:      tv <tv%NetBSD.org@localhost>
date:      Thu Jan 31 19:31:31 2002 +0000

description:
Make this compilable as a host tool.

diffstat:

 usr.bin/uudecode/Makefile   |   4 +++-
 usr.bin/uudecode/uudecode.c |  18 +++++++++++-------
 2 files changed, 14 insertions(+), 8 deletions(-)

diffs (69 lines):

diff -r 52a9ee744b9f -r b2c6a70b4f39 usr.bin/uudecode/Makefile
--- a/usr.bin/uudecode/Makefile Thu Jan 31 19:27:53 2002 +0000
+++ b/usr.bin/uudecode/Makefile Thu Jan 31 19:31:31 2002 +0000
@@ -1,7 +1,9 @@
-#      $NetBSD: Makefile,v 1.5 2001/12/12 01:48:47 tv Exp $
+#      $NetBSD: Makefile,v 1.6 2002/01/31 19:31:31 tv Exp $
 #      @(#)Makefile    8.1 (Berkeley) 6/6/93
 
 PROG=  uudecode
 NOMAN= # defined
 
+.ifndef HOSTPROG
 .include <bsd.prog.mk>
+.endif
diff -r 52a9ee744b9f -r b2c6a70b4f39 usr.bin/uudecode/uudecode.c
--- a/usr.bin/uudecode/uudecode.c       Thu Jan 31 19:27:53 2002 +0000
+++ b/usr.bin/uudecode/uudecode.c       Thu Jan 31 19:31:31 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uudecode.c,v 1.13 1999/03/23 05:59:09 cgd Exp $        */
+/*     $NetBSD: uudecode.c,v 1.14 2002/01/31 19:31:31 tv Exp $ */
 
 /*-
  * Copyright (c) 1983, 1993
@@ -34,18 +34,22 @@
  */
 
 #include <sys/cdefs.h>
-#ifndef lint
+#if defined(__COPYRIGHT) && !defined(lint)
 __COPYRIGHT("@(#) Copyright (c) 1983, 1993\n\
        The Regents of the University of California.  All rights reserved.\n");
 #endif
 
-#ifndef lint
+#if defined(__RCSID) && !defined(lint)
 #if 0
 static char sccsid[] = "@(#)uudecode.c 8.2 (Berkeley) 4/2/94";
 #endif
-__RCSID("$NetBSD: uudecode.c,v 1.13 1999/03/23 05:59:09 cgd Exp $");
+__RCSID("$NetBSD: uudecode.c,v 1.14 2002/01/31 19:31:31 tv Exp $");
 #endif /* not lint */
 
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 /*
  * uudecode [file ...]
  *
@@ -54,16 +58,16 @@
  */
 #include <sys/param.h>
 #include <sys/stat.h>
+#include <ctype.h>
 #include <err.h>
 #include <errno.h>
+#include <limits.h>
 #include <locale.h>
 #include <pwd.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include <ctype.h>
-#include <stdlib.h>
-#include <limits.h>
 
 static int decode __P((void));
 static void usage __P((void));



Home | Main Index | Thread Index | Old Index