fix build with gcc2
This commit is contained in:
parent
297c0d040d
commit
d9d6bf9c1d
@ -1,7 +1,24 @@
|
|||||||
$OpenBSD: patch-arc_c,v 1.3 2011/05/23 13:42:10 gsoares Exp $
|
$OpenBSD: patch-arc_c,v 1.4 2011/05/30 10:58:28 jasper Exp $
|
||||||
--- arc.c.orig Sat Aug 7 10:06:42 2010
|
--- arc.c.orig Sat Aug 7 15:06:42 2010
|
||||||
+++ arc.c Thu May 19 23:35:46 2011
|
+++ arc.c Mon May 30 11:55:37 2011
|
||||||
@@ -298,7 +298,7 @@ main(num, arg) /* system entry point */
|
@@ -129,6 +129,7 @@ main(num, arg) /* system entry point */
|
||||||
|
#if UNIX
|
||||||
|
struct stat sbuf;
|
||||||
|
#endif
|
||||||
|
+ int fd;
|
||||||
|
|
||||||
|
if (num < 3) {
|
||||||
|
printf("ARC - Archive utility, Version 5.21p, created on 08/07/2010\n");
|
||||||
|
@@ -228,7 +229,7 @@ main(num, arg) /* system entry point */
|
||||||
|
#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));
|
||||||
|
@@ -298,7 +299,7 @@ main(num, arg) /* system entry point */
|
||||||
keepbak = 1;
|
keepbak = 1;
|
||||||
|
|
||||||
else if (*a == 'W') /* suppress warnings */
|
else if (*a == 'W') /* suppress warnings */
|
||||||
|
20
archivers/arc/patches/patch-marc_c
Normal file
20
archivers/arc/patches/patch-marc_c
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
$OpenBSD: patch-marc_c,v 1.3 2011/05/30 10:58:28 jasper Exp $
|
||||||
|
--- 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));
|
Loading…
Reference in New Issue
Block a user