summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brand <mabrand@mabrand.nl>2015-03-29 07:19:13 (GMT)
committerMark Brand <mabrand@mabrand.nl>2015-03-29 07:19:13 (GMT)
commit89f07c8d2ecade33a093b87508771780e806ee2f (patch)
treee322e74e15f66c6941750f6135f597e7da3254c5
parent65ca33b218fb2dfe6456ca480eafdb13133917cc (diff)
downloadmxe-89f07c8d2ecade33a093b87508771780e806ee2f.zip
mxe-89f07c8d2ecade33a093b87508771780e806ee2f.tar.gz
mxe-89f07c8d2ecade33a093b87508771780e806ee2f.tar.bz2
plibc: mingw-w64 4.01 compatibility fix
-rw-r--r--src/plibc-1.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/plibc-1.patch b/src/plibc-1.patch
new file mode 100644
index 0000000..8ef7291
--- /dev/null
+++ b/src/plibc-1.patch
@@ -0,0 +1,32 @@
+This file is part of MXE.
+See index.html for further information.
+
+From 5decce3a7834e7cdb8830e2733421029d74da009 Mon Sep 17 00:00:00 2001
+From: Mark Brand <mabrand@mabrand.nl>
+Date: Sun, 29 Mar 2015 09:13:18 +0200
+Subject: [PATCH] build fix for mingw-w64 4.0.1
+
+
+diff --git a/src/include/plibc.h b/src/include/plibc.h
+index ca293fd..8106da1 100644
+--- a/src/include/plibc.h
++++ b/src/include/plibc.h
+@@ -467,6 +467,7 @@ typedef struct
+ blocking */
+ #define LOCK_UN 8 /* remove lock */
+
++#ifndef S_IRGRP
+ /* Not supported under MinGW */
+ #define S_IRGRP 0
+ #define S_IWGRP 0
+@@ -479,6 +480,7 @@ typedef struct
+ #define S_ISVTX 0
+ #define S_IRWXG 0
+ #define S_IRWXO 0
++#endif
+
+ #define SHUT_WR SD_SEND
+ #define SHUT_RD SD_RECEIVE
+--
+2.1.0
+