From: "cron2 (Code Review)" Date: Fri, 22 Sep 2023 12:16:25 +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="RWb+Vud0Qrc="; 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 Cc: flichtenheld , openvpn-devel --RWb+Vud0Qrc= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/36= 2?usp=3Demail ) 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(-) 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: merged --RWb+Vud0Qrc= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 submitted this change.

View Change

CMake: fix HAVE_DAEMON detection on Linux
<= br>On Linux, daemon() is defined in unistd.h, not in
stdlib.h like in Ma= cOS or FreeBSD.

Change-Id: I30f4ea502a36eca155cbc79b89c0d18ee3419877=
Signed-off-by: Lev Stipakov <lev@...515...>
Acked-by: Gert Doe= ring <gert@...1296...>
Message-Id: <20230922103900.37205-1-fran= k@...2641...>
URL: https://www.mail-archive.com/openvpn-devel@...1096...= ourceforge.net/msg27058.html
Signed-off-by: Gert Doering <gert@...1826...= 6...>
---
M CMakeLists.txt
1 file changed, 1 insertion(+), 1 de= letion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 454ef= 62..376a060 100644
--- a/CMakeLists.txt
+++= b/CMakeLists.txt
@@ -158,7 +158,7 @@
chec= k_symbol_exists(gettimeofday sys/time.h HAVE_GETTIMEOFDAY)
= check_symbol_exists(basename libgen.h HAVE_BASENAME)
chec= k_symbol_exists(chsize io.h HAVE_CHSIZE)
-check_symbol_exists(daemon stdlib.h HAVE_DAEMON)<= br>+check_symbol_exists(daemon = "unistd.h;stdlib.h" HAVE_DAEMON)
check_symbol_ex= ists(dirname libgen.h HAVE_DIRNAME)
check_symbol_exists(ge= trlimit 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 filters, visit = settings.

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: merged
--RWb+Vud0Qrc=--