summaryrefslogtreecommitdiff
path: root/sys-fs/mac-fdisk/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-12-24 14:11:38 +0000
committerV3n3RiX <venerix@redcorelinux.org>2018-12-24 14:11:38 +0000
commitde49812990871e1705b64051c35161d5e6400269 (patch)
tree5e1e8fcb0ff4579dbd22a1bfee28a6b97dc8aaeb /sys-fs/mac-fdisk/files
parent536c3711867ec947c1738f2c4b96f22e4863322d (diff)
gentoo resync : 24.12.2018
Diffstat (limited to 'sys-fs/mac-fdisk/files')
-rw-r--r--sys-fs/mac-fdisk/files/mac-fdisk-0.1_p18-lseek64.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/sys-fs/mac-fdisk/files/mac-fdisk-0.1_p18-lseek64.patch b/sys-fs/mac-fdisk/files/mac-fdisk-0.1_p18-lseek64.patch
new file mode 100644
index 000000000000..d075d4760b81
--- /dev/null
+++ b/sys-fs/mac-fdisk/files/mac-fdisk-0.1_p18-lseek64.patch
@@ -0,0 +1,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>