From b4e4824bac5dbfe3c04b3c38fe3981ad9abcd20b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Tue, 21 Aug 2001 21:33:23 +0000 Subject: [PATCH] - time.h fixes Changed files: arc-time.patch -> 1.1 arc.spec -> 1.4 --- arc-time.patch | 35 +++++++++++++++++++++++++++++++++++ arc.spec | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 arc-time.patch diff --git a/arc-time.patch b/arc-time.patch new file mode 100644 index 0000000..4ea267d --- /dev/null +++ b/arc-time.patch @@ -0,0 +1,35 @@ +diff -urN arc.org/arcdos.c arc/arcdos.c +--- arc.org/arcdos.c Wed Apr 15 00:58:21 1992 ++++ arc/arcdos.c Tue Aug 21 19:08:09 2001 +@@ -30,15 +30,8 @@ + #if UNIX + #include + #include +-#if BSD + #include +-#else + #include /* Sys V. Bleah. */ +-struct timeval { +- long tv_sec; +- long tv_usec; +-}; +-#endif /* BSD vs SYSV */ + #endif + + #if GEMDOS +diff -urN arc.org/tmclock.c arc/tmclock.c +--- arc.org/tmclock.c Wed Apr 15 00:58:50 1992 ++++ arc/tmclock.c Tue Aug 21 19:09:27 2001 +@@ -14,12 +14,8 @@ + /* Julian day number of the Unix* clock's origin, 01 Jan 1970. */ + #define JD1970 2440587L + #define CENTURY 19 +-#if BSD + #include +-#else + #include +-extern long timezone; /* should be in , but isn't on Sun */ +-#endif + + long tzone; + diff --git a/arc.spec b/arc.spec index f527776..7e224ac 100644 --- a/arc.spec +++ b/arc.spec @@ -8,6 +8,7 @@ Group: Applications/Archiving Group(de): Applikationen/Archivierung Group(pl): Aplikacje/Archiwizacja Source0: ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/%{name}521e.pl8.tar.Z +Patch0: %{name}-time.patch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -21,6 +22,7 @@ stare archiwa .arc. %prep %setup -q -c +%patch0 -p1 %build %{__make} OPT="%{rpmcflags}" -- 2.44.0