1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

_GNU_SOURCE is needed for mkostemp on Cygwin

This commit is contained in:
Nobuyoshi Nakada 2020-05-26 19:17:47 +09:00
parent 17d17de0e8
commit 5917fe2303
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
2 changed files with 12 additions and 0 deletions

View file

@ -6,6 +6,7 @@ https://ftp.osuosl.org/pub/blfs/conglomeration/libffi/$(pkg).tar.gz \
sha512:980ca30a8d76f963fca722432b1fe5af77d7a4e4d2eac5144fbc5374d4c596609a293440573f4294207e1bdd9fda80ad1e1cafb2ffb543df5a275bc3bd546483 \
#
win32/$(pkg)-mswin.patch -p0
win32/$(pkg)-cygwin.patch -p0
$(pkg)/config.guess -> /tool/config.guess
$(pkg)/config.sub -> /tool/config.sub

View file

@ -0,0 +1,11 @@
--- libffi-3.2.1/src/closures.c 2014-11-08 21:47:24.000000000 +0900
+++ libffi-3.2.1/src/closures.c 2020-05-26 19:09:26.334088215 +0900
@@ -26,7 +26,7 @@
DEALINGS IN THE SOFTWARE.
----------------------------------------------------------------------- */
-#if defined __linux__ && !defined _GNU_SOURCE
+#if (defined __linux__ || defined __CYGWIN__) && !defined _GNU_SOURCE
#define _GNU_SOURCE 1
#endif