ports/archivers/arc/patches/patch-marc_c

20 lines
538 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
--- marc.c.orig Mon May 30 04:53:15 2011
+++ marc.c Mon May 30 04:53:49 2011
@@ -63,6 +63,7 @@ char *arg[]; /* pointers to arguments */
VOID exitpause();
#endif
int n; /* index */
+ int fd;
#if UNIX
struct stat sbuf;
#endif
@@ -123,7 +124,7 @@ char *arg[]; /* pointers to arguments */
#if !MSDOS
{
strcat(arctemp, "AXXXXXX");
- int fd = mkstemp(arctemp);
+ fd = mkstemp(arctemp);
if (fd == -1)
{
fprintf(stderr, "Unable to create temporary files: %s\n", strerror(errno));