pkgsrc/graphics/urt/patches/patch-ah
joerg 7f721af138 Fix errno. On DragonFly, initialise the rle_dflt_hdr at runtime with
stdout, it can't be computed at link time.
2006-05-11 14:46:35 +00:00

24 lines
558 B
Text

$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;