ruby-changes:61382
From: Nobuyoshi <ko1@a...>
Date: Tue, 26 May 2020 19:18:37 +0900 (JST)
Subject: [ruby-changes:61382] 5917fe2303 (master): _GNU_SOURCE is needed for mkostemp on Cygwin
https://git.ruby-lang.org/ruby.git/commit/?id=5917fe2303 From 5917fe2303bc85882b52e60145eb031ee18583c7 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Tue, 26 May 2020 19:17:47 +0900 Subject: _GNU_SOURCE is needed for mkostemp on Cygwin diff --git a/ext/fiddle/extlibs b/ext/fiddle/extlibs index 030621f..85490ea 100644 --- a/ext/fiddle/extlibs +++ b/ext/fiddle/extlibs @@ -6,6 +6,7 @@ https://ftp.osuosl.org/pub/blfs/conglomeration/libffi/$(pkg).tar.gz \ https://github.com/ruby/ruby/blob/trunk/ext/fiddle/extlibs#L6 sha512:980ca30a8d76f963fca722432b1fe5af77d7a4e4d2eac5144fbc5374d4c596609a293440573f4294207e1bdd9fda80ad1e1cafb2ffb543df5a275bc3bd546483 \ # win32/$(pkg)-mswin.patch -p0 + win32/$(pkg)-cygwin.patch -p0 $(pkg)/config.guess -> /tool/config.guess $(pkg)/config.sub -> /tool/config.sub diff --git a/ext/fiddle/win32/libffi-3.2.1-cygwin.patch b/ext/fiddle/win32/libffi-3.2.1-cygwin.patch new file mode 100644 index 0000000..743be27 --- /dev/null +++ b/ext/fiddle/win32/libffi-3.2.1-cygwin.patch @@ -0,0 +1,11 @@ https://github.com/ruby/ruby/blob/trunk/ext/fiddle/win32/libffi-3.2.1-cygwin.patch#L1 +--- 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 + -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/