From: "stipa (Code Review)" Date: Thu, 21 Sep 2023 14:07:45 +0000 References: Reply-To: lstipakov@...277..., 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="HfI6lkTpXOk="; 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: flichtenheld Cc: openvpn-devel --HfI6lkTpXOk= 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/+/362?usp=3Demail to review the following change. 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 --- M CMakeLists.txt 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/62/362/1 diff --git a/CMakeLists.txt b/CMakeLists.txt index 9de6aba..76351c1 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) --=20 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: 1 Gerrit-Owner: stipa Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-Attention: flichtenheld Gerrit-MessageType: newchange --HfI6lkTpXOk= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld.

stipa would like flichtenheld to review this change.

Vi= ew Change

CMake: fix HAVE_DAEMON detection on Linux

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

Change-Id: I30f4ea502a36eca155cbc79b89c0d18ee3419877
Signed-off-= by: Lev Stipakov <lev@...515...>
---
M CMakeLists.txt
1 file= changed, 1 insertion(+), 1 deletion(-)

git pull ssh://gerrit.ope=
nvpn.net:29418/openvpn refs/changes/62/362/1
diff --git a/CMakeList=
s.txt b/CMakeLists.txt
index 9de6aba..76351c1 100644=
--- a/CMakeLists.txt
+++ b/CMakeLists.txt<= br>@@ -158,7 +158,7 @@
check_symbol_exists(gettimeof= day sys/time.h HAVE_GETTIMEOFDAY)
check_symbol_exists(base= name 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&q= uot; HAVE_DAEMON)
check_symbol_exists(dirname libgen.h HAV= E_DIRNAME)
check_symbol_exists(getrlimit sys/resource.h HA= VE_GETRLIMIT)
check_symbol_exists(mlockall sys/mman.h HAVE= _MLOCKALL)

To view, visit change 362. To uns= ubscribe, 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: 1
Gerrit-Owner: stipa <lstipakov@...277...>= ;
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
--HfI6lkTpXOk=--