From: "cron2 (Code Review)" Date: Fri, 22 Sep 2023 12:16:24 +0000 In-Reply-To: References: Reply-To: gert@...1296..., openvpn-devel@lists.sourceforge.net, frank@...2641..., lstipakov@...277... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="pzxWQBtwsIk="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: CMake: fix HAVE_DAEMON detection on Linux List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: stipa , flichtenheld Cc: openvpn-devel --pzxWQBtwsIk= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#2) to the change originally created by= stipa. ( http://gerrit.openvpn.net/c/openvpn/+/362?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by cron2 Change subject: CMake: fix HAVE_DAEMON detection on Linux ...................................................................... CMake: fix HAVE_DAEMON detection on Linux On Linux, daemon() is defined in unistd.h, not in stdlib.h like in MacOS or FreeBSD. Change-Id: I30f4ea502a36eca155cbc79b89c0d18ee3419877 Signed-off-by: Lev Stipakov Acked-by: Gert Doering Message-Id: <20230922103900.37205-1-frank@...2641...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg27= 058.html Signed-off-by: Gert Doering --- M CMakeLists.txt 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/62/362/2 diff --git a/CMakeLists.txt b/CMakeLists.txt index 454ef62..376a060 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -158,7 +158,7 @@ check_symbol_exists(gettimeofday sys/time.h HAVE_GETTIMEOFDAY) check_symbol_exists(basename libgen.h HAVE_BASENAME) check_symbol_exists(chsize io.h HAVE_CHSIZE) -check_symbol_exists(daemon stdlib.h HAVE_DAEMON) +check_symbol_exists(daemon "unistd.h;stdlib.h" HAVE_DAEMON) check_symbol_exists(dirname libgen.h HAVE_DIRNAME) check_symbol_exists(getrlimit sys/resource.h HAVE_GETRLIMIT) check_symbol_exists(mlockall sys/mman.h HAVE_MLOCKALL) -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/362?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: I30f4ea502a36eca155cbc79b89c0d18ee3419877 Gerrit-Change-Number: 362 Gerrit-PatchSet: 2 Gerrit-Owner: stipa Gerrit-Reviewer: cron2 Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-MessageType: newpatchset --pzxWQBtwsIk= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 uploaded patch set #2 to the change originally cr= eated by stipa.

View Change

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

CMake: fix HAVE_DAEMON detection on Linux

On = Linux, daemon() is defined in unistd.h, not in
stdlib.h like in MacOS or= FreeBSD.

Change-Id: I30f4ea502a36eca155cbc79b89c0d18ee3419877
Si= gned-off-by: Lev Stipakov <lev@...515...>
Acked-by: Gert Doering &= lt;gert@...1296...>
Message-Id: <20230922103900.37205-1-frank@...1665...= 641...>
URL: https://www.mail-archive.com/openvpn-devel@...1535...= orge.net/msg27058.html
Signed-off-by: Gert Doering <gert@...1296...&g= t;
---
M CMakeLists.txt
1 file changed, 1 insertion(+), 1 deletion= (-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/=
62/362/2
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 454ef62..376a060 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -158,7 +158,7 @@<= br> check_symbol_exists(gettimeofday sys/time.h HAVE_GETTIMEOFDAY)
check_symbol_exists(basename libgen.h HAVE_BASENAME)<= br> check_symbol_exists(chsize io.h HAVE_CHSIZE)
-check_symbol_exists(daemon stdlib.h HAVE_D= AEMON)
+check_symbol_= exists(daemon "unistd.h;stdlib.h" HAVE_DAEMON)
c= heck_symbol_exists(dirname libgen.h HAVE_DIRNAME)
check_sy= mbol_exists(getrlimit sys/resource.h HAVE_GETRLIMIT)
check= _symbol_exists(mlockall sys/mman.h HAVE_MLOCKALL)

To view, visit change 362. To unsubscribe, or for help writing mail f= ilters, visit settings.<= /p>

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I30f4ea502a36eca155cbc79b89c= 0d18ee3419877
Gerrit-Change-Number: 362
Gerrit-PatchSet: 2
Gerrit-Owner: stipa <lstipakov@...277...>= ;
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-MessageType: newpatchset
--pzxWQBtwsIk=--