From: "cron2 (Code Review)" Date: Sat, 2 Dec 2023 16:07:30 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="wQuE9NG2BIo="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: Add check for nice in cmake config List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos , flichtenheld Cc: openvpn-devel --wQuE9NG2BIo= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#4) to the change originally created by= plaisthos. ( http://gerrit.openvpn.net/c/openvpn/+/444?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by flichtenheld Change subject: Add check for nice in cmake config ...................................................................... Add check for nice in cmake config Change-Id: I2cc8f9b82079acca250db5871ffd9fad2997d1a8 Acked-by: Frank Lichtenheld Signed-off-by: Arne Schwabe Message-Id: <20231128104129.62761-1-frank@...2641...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg27= 574.html Signed-off-by: Gert Doering --- M CMakeLists.txt M config.h.cmake.in 2 files changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/44/444/4 diff --git a/CMakeLists.txt b/CMakeLists.txt index 4aa9793..db9966b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -144,6 +144,7 @@ check_symbol_exists(fork unistd.h HAVE_FORK) check_symbol_exists(execve unistd.h HAVE_EXECVE) check_symbol_exists(ftruncate unistd.h HAVE_FTRUNCATE) +check_symbol_exists(nice unistd.h HAVE_NICE) check_symbol_exists(setgid unistd.h HAVE_SETGID) check_symbol_exists(setuid unistd.h HAVE_SETUID) check_symbol_exists(setsid unistd.h HAVE_SETSID) diff --git a/config.h.cmake.in b/config.h.cmake.in index 848c505..0ef8fe3 100644 --- a/config.h.cmake.in +++ b/config.h.cmake.in @@ -215,7 +215,7 @@ #cmakedefine HAVE_NET_TUN_IF_TUN_H /* Define to 1 if you have the `nice' function. */ -#undef HAVE_NICE +#cmakedefine HAVE_NICE /* Define to 1 if you have the `openlog' function. */ #cmakedefine HAVE_OPENLOG -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/444?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I2cc8f9b82079acca250db5871ffd9fad2997d1a8 Gerrit-Change-Number: 444 Gerrit-PatchSet: 4 Gerrit-Owner: plaisthos Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-MessageType: newpatchset --wQuE9NG2BIo= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 uploaded patch set #4 to the change originally cr= eated by plaisthos.

View Change

The following approvals got outdated= and were removed: Code-Review+2 by flichtenheld

Add check for nice in cmake config

Cha= nge-Id: I2cc8f9b82079acca250db5871ffd9fad2997d1a8
Acked-by: Frank Lichte= nheld <frank@...2641...>
Signed-off-by: Arne Schwabe <arne@...1386...= 227...>
Message-Id: <20231128104129.62761-1-frank@...2641...>URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg= 27574.html
Signed-off-by: Gert Doering <gert@...1296...>
---M CMakeLists.txt
M config.h.cmake.in
2 files changed, 2 insertions(+= ), 1 deletion(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn =
refs/changes/44/444/4
diff --git a/CMakeLists.txt b/CMakeLists.txt<=
/span>
index 4aa9793..db9966b 100644
--- a/CMakeLi= sts.txt
+++ b/CMakeLists.txt
@@ -144,6 +144= ,7 @@
check_symbol_exists(fork unistd.h HAVE_FORK)<= br> check_symbol_exists(execve unistd.h HAVE_EXECVE)
= check_symbol_exists(ftruncate unistd.h HAVE_FTRUNCATE)
+check_symbol_exists(nice unistd.h HAVE_= NICE)
check_symbol_exists(setgid unistd.h HAVE_SETGID)
check_symbol_exists(setuid unistd.h HAVE_SETUID)
check_symbol_exists(setsid unistd.h HAVE_SETSID)

diff = --git a/config.h.cmake.in b/config.h.cmake.in
index 848c505= ..0ef8fe3 100644
--- a/config.h.cmake.in
++= + b/config.h.cmake.in
@@ -215,7 +215,7 @@
= #cmakedefine HAVE_NET_TUN_IF_TUN_H

/* De= fine to 1 if you have the `nice' function. */
-#undef HAVE_NICE
+#cmakedefine HAVE_NICE
/* Define to 1 if you have the `openlog' function. */ #cmakedefine HAVE_OPENLOG

To vi= ew, visit change 444. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I2cc8f9b82079acca250db5871ff= d9fad2997d1a8
Gerrit-Change-Number: 444
Gerrit-PatchSet: 4
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-MessageType: newpatchset
--wQuE9NG2BIo=--