summaryrefslogtreecommitdiff
path: root/archivers/unarj/files/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/unarj/files/patch-ac')
-rw-r--r--archivers/unarj/files/patch-ac34
1 files changed, 28 insertions, 6 deletions
diff --git a/archivers/unarj/files/patch-ac b/archivers/unarj/files/patch-ac
index 4f75211e513c..43f2e4c66c96 100644
--- a/archivers/unarj/files/patch-ac
+++ b/archivers/unarj/files/patch-ac
@@ -1,6 +1,6 @@
---- environ.c.orig Tue Jun 22 22:07:20 1993
-+++ environ.c Sat Dec 26 08:39:07 1998
-@@ -429,16 +429,23 @@
+--- environ.c.orig Mon Sep 29 14:00:24 1997
++++ environ.c Thu Feb 18 01:14:35 1999
+@@ -430,16 +430,24 @@
#define SUBS_DEFINED
@@ -8,6 +8,7 @@
+#include <string.h>
#include <time.h>
+#include <sys/types.h>
++#include <utime.h>
-#ifndef time_t
-#define time_t long
@@ -27,7 +28,7 @@
FILE *
file_open(name, mode)
-@@ -534,8 +541,12 @@
+@@ -535,8 +543,12 @@
}
long
@@ -41,7 +42,7 @@
#define NOONOFFSET 43200L
#define SEC_IN_DAY (24L * 60L * 60L)
#define INV_VALUE (SEC_IN_DAY + 1L)
-@@ -551,6 +562,7 @@
+@@ -552,6 +564,7 @@
noontm = localtime(&noon);
retval = NOONOFFSET - 60 * (60 * noontm->tm_hour - noontm->tm_min);
return retval;
@@ -49,7 +50,20 @@
}
long
-@@ -608,7 +620,8 @@
+@@ -600,19 +613,29 @@
+ {
+ time_t m_time;
+ struct utimbuf
++#ifndef __FreeBSD__
+ {
+ time_t atime; /* New access time */
+ time_t mtime; /* New modification time */
+ } tb;
++#else
++ tb;
++#endif
+
+ (char *) name;
(uint) attribute;
(uint) host;
@@ -57,5 +71,13 @@
+ m_time = mstonix(tstamp);
+ m_time += gettz(m_time);
++#ifndef __FreeBSD__
tb.mtime = m_time; /* Set modification time */
tb.atime = m_time; /* Set access time */
++#else
++ tb.modtime = m_time; /* Set modification time */
++ tb.actime = m_time; /* Set access time */
++#endif
+
+ /* set the time stamp on the file */
+ return utime(name, &tb);