pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[patch] fix for building archivers/zoo
Hi,
in archivers/zoo, in bsd.c, the time() function is called before the
respective #includes are read.
Attache patch fixes that.
(build-)tested on Linux and NetBSD 5.1
Regards
Matthias
$NetBSD$
--- bsd.c.orig 2015-02-26 19:46:39.000000000 +0000
+++ bsd.c
@@ -50,6 +50,17 @@ Date and time functions are standard UNI
#include <sys/stat.h>
#include <sys/time.h>
+/* Standard UNIX-compatible time routines */
+#include "nixtime.i"
+
+/* Standard UNIX-specific file attribute routines */
+#include "nixmode.i"
+
+#include <unistd.h>
+#ifndef SEEK_CUR
+# define SEEK_CUR 1
+#endif
+
/* Function isadir() returns 1 if the supplied handle is a directory,
else it returns 0.
*/
@@ -88,17 +99,6 @@ long gettz()
return retval;
}
-/* Standard UNIX-compatible time routines */
-#include "nixtime.i"
-
-/* Standard UNIX-specific file attribute routines */
-#include "nixmode.i"
-
-#include <unistd.h>
-#ifndef SEEK_CUR
-# define SEEK_CUR 1
-#endif
-
/* Truncate a file. */
int zootrunc(f) FILE *f;
{
Home |
Main Index |
Thread Index |
Old Index