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:
parent
17d17de0e8
commit
5917fe2303
2 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
11
ext/fiddle/win32/libffi-3.2.1-cygwin.patch
Normal file
11
ext/fiddle/win32/libffi-3.2.1-cygwin.patch
Normal 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
|
||||
|
Loading…
Reference in a new issue