summaryrefslogtreecommitdiff
path: root/graphics/urt/patches/patch-ah
blob: b2a2533f84d5f7d8977b3d2c126142c6ed783294 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-ah,v 1.4 2006/05/11 14:46:35 joerg Exp $

--- tools/into.c.orig	1992-04-30 14:10:15.000000000 +0000
+++ tools/into.c
@@ -40,8 +40,9 @@ static char temp[] = "intoXXXXXXXX";
 static char buf[MAXPATHLEN+1];
 short forceflg;				/* overwrite an unwritable file? */
 
-extern int errno;
+#ifndef BSD
 extern char *sys_errlist[];
+#endif
 
 void
 main(argc, argv)
@@ -72,7 +73,7 @@ char **argv;
 	exit(1);
     }
 
-    if ( (cp = rindex( argv[1], '/' )) != NULL )
+    if ( (cp = rle_rindex( argv[1], '/' )) != NULL )
     {
 	c = *++cp;
 	*cp = 0;