[前][次][番号順一覧][スレッド一覧]

ruby-changes:71022

From: Nobuyoshi <ko1@a...>
Date: Wed, 26 Jan 2022 18:24:10 +0900 (JST)
Subject: [ruby-changes:71022] bffd6cbd97 (master): Check if `execv` is available for ruby/missing.h

https://git.ruby-lang.org/ruby.git/commit/?id=bffd6cbd97

From bffd6cbd97dd61e347a8f7de36266809444fb4c1 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 26 Jan 2022 18:23:51 +0900
Subject: Check if `execv` is available for ruby/missing.h

As MinGW has the declaration, the `dllimport` attribute difference
is warned when compiling missing/*.c without including ruby/win32.h.

```
../src/include/ruby/missing.h:316:17: warning: 'execv' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
  316 | RUBY_EXTERN int execv(const char *, char *const []);
      |                 ^~~~~
```
---
 configure.ac | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configure.ac b/configure.ac
index 534e40a4948..4feefb57915 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1149,6 +1149,7 @@ main() https://github.com/ruby/ruby/blob/trunk/configure.ac#L1149
 		ac_cv_header_sys_time_h=no
 		ac_cv_header_sys_times_h=no
 		ac_cv_header_sys_socket_h=no
+		ac_cv_func_execv=yes
 		ac_cv_func_lstat=yes
 		ac_cv_func_times=yes
 		ac_cv_func_waitpid=yes
@@ -1998,6 +1999,7 @@ AC_CHECK_FUNCS(endgrent) https://github.com/ruby/ruby/blob/trunk/configure.ac#L1999
 AC_CHECK_FUNCS(eventfd)
 AC_CHECK_FUNCS(execl)
 AC_CHECK_FUNCS(execle)
+AC_CHECK_FUNCS(execv)
 AC_CHECK_FUNCS(execve)
 AC_CHECK_FUNCS(explicit_memset)
 AC_CHECK_FUNCS(fcopyfile)
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]