summaryrefslogtreecommitdiff
path: root/archivers/mousetar/patches/patch-aa
blob: 832df112da0c76d6a87da44cb6c9db7a76a28795 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$NetBSD: patch-aa,v 1.5 2014/01/02 03:24:47 dholland Exp $

--- tar.c.orig	2012-03-09 06:07:25.071601044 +0000
+++ tar.c
@@ -235,6 +235,9 @@ standards: gwoods sez IEEE Std 1003.1-19
 
 #include <stdio.h>
 /* #include <time.h> grrr... */
+#ifdef __linux__
+#include <time.h>
+#endif
 #include <errno.h>
 #include <ctype.h>
 #include <setjmp.h>
@@ -247,8 +250,17 @@ standards: gwoods sez IEEE Std 1003.1-19
 #include <sys/file.h>
 #include <sys/stat.h>
 #include <sys/time.h>
+#if 0
 #include <sys/dir.h>
+#else
+
+#endif
+#include <dirent.h>
 #include <unistd.h>
+#include <fcntl.h>
+#ifdef __sun
+#include <sys/mkdev.h>
+#endif
 
 /* If none of the TAR_MAP_* symbols are defined, guess */
 #if !defined(TAR_MAP_SUN) &&	\
@@ -471,8 +483,8 @@ extern char *valloc();
 /* NetBSD: fix up itoo/itod and the fs_q?mask fields, and BIG* */
 #ifdef TAR_INODE_NETBSD
 #include <sys/param.h>
-#include <ufs/ffs/fs.h>
 #include <ufs/ufs/dinode.h>
+#include <ufs/ffs/fs.h>
 #define rawi_direct direct
 #define itoo(sb,i) ino_to_fsbo(sb,i)
 #define itod(sb,i) ino_to_fsba(sb,i)