summaryrefslogtreecommitdiff
path: root/sys-fs/mac-fdisk/files/mac-fdisk-0.1_p18-lseek64.patch
blob: d075d4760b81fc3c820262177f74c3a7f0ef97f1 (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
43
--- a/fdisk.c
+++ b/fdisk.c
@@ -59,6 +59,10 @@
  */
 
 
+#ifndef _LARGEFILE64_SOURCE
+#define _LARGEFILE64_SOURCE
+#endif
+#include <sys/types.h>
 #include <unistd.h>
 #include <stdio.h>
 #include <stdlib.h>
--- a/fdisklabel.c
+++ b/fdisklabel.c
@@ -35,6 +35,9 @@
    SUCH DAMAGE.
 */
 
+#ifndef _LARGEFILE64_SOURCE
+#define _LARGEFILE64_SOURCE
+#endif
 #include <sys/types.h>
 #include <unistd.h>
 #include <stdio.h>
--- a/io.c
+++ b/io.c
@@ -25,6 +25,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 
  */
 
+#define _LARGEFILE64_SOURCE
 #include <stdio.h>
 #include <stdlib.h>
 #include <fcntl.h>
@@ -37,6 +38,7 @@
 #endif
 #endif
 #include <linux/unistd.h>
+#include <sys/types.h>
 #include <unistd.h>
 #include <string.h>
 #include <stdarg.h>