From: "plaisthos (Code Review)" Date: Mon, 20 Nov 2023 10:23:43 +0000 References: Reply-To: arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <0c4e74fd006c680b5596cbe75eaa05bac1110a58-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="WPqJnf1FKNo="; 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: flichtenheld Cc: openvpn-devel --WPqJnf1FKNo= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld. Hello flichtenheld, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/444?usp=3Demail to review the following change. Change subject: Add check for nice in cmake config ...................................................................... Add check for nice in cmake config Change-Id: I2cc8f9b82079acca250db5871ffd9fad2997d1a8 --- 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/1 diff --git a/CMakeLists.txt b/CMakeLists.txt index fe9b596..f82ee96 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -146,6 +146,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 25273ac..c1f5848 100644 --- a/config.h.cmake.in +++ b/config.h.cmake.in @@ -209,7 +209,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: 1 Gerrit-Owner: plaisthos Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-Attention: flichtenheld Gerrit-MessageType: newchange --WPqJnf1FKNo= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld.

plaisthos would like flichtenheld to review this change.

Vi= ew Change

Add check for nice in cmake config

Change-Id: I2cc8f9b= 82079acca250db5871ffd9fad2997d1a8
---
M CMakeLists.txt
M config.h.= cmake.in
2 files changed, 2 insertions(+), 1 deletion(-)

git p= ull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/44/444/1
di=
ff --git a/CMakeLists.txt b/CMakeLists.txt
index fe9b596..f= 82ee96 100644
--- a/CMakeLists.txt
+++ b/CM= akeLists.txt
@@ -146,6 +146,7 @@
check_sym= bol_exists(fork unistd.h HAVE_FORK)
check_symbol_exists(ex= ecve unistd.h HAVE_EXECVE)
check_symbol_exists(ftruncate u= nistd.h HAVE_FTRUNCATE)
+check_symbol_exists(nice unistd.h HAVE_NICE)
check_sym= bol_exists(setgid unistd.h HAVE_SETGID)
check_symbol_exist= s(setuid unistd.h HAVE_SETUID)
check_symbol_exists(setsid = unistd.h HAVE_SETSID)
diff --git a/config.h.cmake.in b/conf= ig.h.cmake.in
index 25273ac..c1f5848 100644
--- a/config.h.cmake.in
+++ b/config.h.cmake.in
= @@ -209,7 +209,7 @@
#cmakedefine HAVE_NET_TUN_IF_TUN= _H

/* Define to 1 if you have the `nice&= #39; function. */
-#und= ef HAVE_NICE
+#cmaked= efine HAVE_NICE

/* Define to 1 if you ha= ve the `openlog' function. */
#cmakedefine HAVE_OPENLO= G

To view, 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: 1
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-MessageType: newchange
--WPqJnf1FKNo=--