Module Name:    src
Committed By:   enami
Date:           Tue Aug 31 04:50:07 UTC 2010

Modified Files:
        src/bin/pax: ar_io.c

Log Message:
Fix build as tools.


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/bin/pax/ar_io.c

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

Modified files:

Index: src/bin/pax/ar_io.c
diff -u src/bin/pax/ar_io.c:1.50 src/bin/pax/ar_io.c:1.51
--- src/bin/pax/ar_io.c:1.50	Tue Aug 31 03:16:06 2010
+++ src/bin/pax/ar_io.c	Tue Aug 31 04:50:07 2010
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)ar_io.c	8.2 (Berkeley) 4/18/94";
 #else
-__RCSID("$NetBSD: ar_io.c,v 1.50 2010/08/31 03:16:06 enami Exp $");
+__RCSID("$NetBSD: ar_io.c,v 1.51 2010/08/31 04:50:07 enami Exp $");
 #endif
 #endif /* not lint */
 
@@ -147,11 +147,13 @@
 			syswarn(0, errno, "Failed open on %s", name);
 			return -1;
 		}
+#if !HAVE_NBTOOL_CONFIG_H
 		if (!isrmt(arfd)) {
 			rmtclose(arfd);
 			tty_warn(0, "Not a remote file: %s", name);
 			return -1;
 		}
+#endif
 		blksz = rdblksz = 8192;
 		lstrval = 1;
 		return 0;

Reply via email to