From patchwork Fri Sep 22 10:39:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Lichtenheld X-Patchwork-Id: 3358 Return-Path: Delivered-To: patchwork@openvpn.net Received: by 2002:a05:7301:2697:b0:d7:3b0f:3938 with SMTP id ha23csp3647591dyb; Fri, 22 Sep 2023 03:40:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF0jNL12JO1WVBDmbL49c/Vk125C7jDp2JwXeDJPkKy3veOi9JCmy97wICFgZzRlbZUBgol X-Received: by 2002:a05:6808:1997:b0:3ad:f5d8:2da9 with SMTP id bj23-20020a056808199700b003adf5d82da9mr7484732oib.4.1695379205984; Fri, 22 Sep 2023 03:40:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695379205; cv=none; d=google.com; s=arc-20160816; b=X1zm9qTjtpEoSRBs9WezRUwjr6YO8k4nctNOt2Vg/PHHcmhrfOioa5Y2pMMBaUIrAx NO3/5nJeww4KThe1VM3TtasSdud6D3Fi6CZtBxUhSTg8Zwt6O3EZLV6VujYvUKKl2kf6 bDt7deKznZisOv59H/mAq6e9OBkDDyBN7/Gqucis6PgpaGA4KfqBrNQkKbicLJHWpxoW zdG0USzrJhIJwcSlq/ehswGzU9irG/YAfOlog/VrtLZ8iFl6CUoRO6Xf6gMWxoJRgwgZ p6an3MhY7OfcPen6ttZwqq0ieBRg/vJW/X+2SuBm6WEO8dmLQWxXBDDxWSYsB1DnuLQa F4mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:content-transfer-encoding:cc:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:dkim-signature:dkim-signature; bh=sxaAmsVHUJkrLx5ons304dlAy9nAjgmdGVFhRsgwoIg=; fh=rF0Fp/Mn0YyBiaDBDegx0ruxgld/oB8mGrI/iheR4eU=; b=RICo8ApOpq8FCa5pp+zyhi0N8G5zjQ4i2qaCcIeBUA2u+DW1lU9THjLzcBW6hW32Xm 2FVjQDVwF4Ueo9uNuuFPs+0lbL0mV5rj6IBh4LRhRMgR3YxWM9QNBsB6eWBkDmeA1V2b GSSTEwPpyORzDtjJ0ZoKjIGwj/xsHDg4+U3nlU8fc+Irnt7kEd7t8HKjPB/wNLZQvam4 ZCXPjjtj8rvJEQbAMwa1GMOyR0YFnX6mdsE0xFo7QmyyKorboZEs3u0w+FxLWxrfTNOr P2EdapFhgpr03QxCeMJjz8rfVZiekRJN4Qe4HDkGYPoD7EbLjzTHeNLy2ZpV5jS3pVYD q3Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=PaEAVT2k; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=NrbmeRIN; dkim=neutral (body hash did not verify) header.i=@lichtenheld.com header.s=MBO0001 header.b=L2sOi6rC; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7]) by mx.google.com with ESMTPS id bv64-20020a632e43000000b0057745d87b50si3393379pgb.139.2023.09.22.03.40.05 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Sep 2023 03:40:05 -0700 (PDT) Received-SPF: pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) client-ip=216.105.38.7; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=PaEAVT2k; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=NrbmeRIN; dkim=neutral (body hash did not verify) header.i=@lichtenheld.com header.s=MBO0001 header.b=L2sOi6rC; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1qjdZ5-0002q4-Ir; Fri, 22 Sep 2023 10:39:14 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1qjdZ4-0002pu-Ok for openvpn-devel@lists.sourceforge.net; Fri, 22 Sep 2023 10:39:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=D+qr3LcfQUY5+YKO81TyCg9G/rzOpISw29L1tnISZOg=; b=PaEAVT2kZD+exc7IAEgjyUgwH0 VO6kNBgEhS9zZcMnrm1s4Ln4+tUQAdYP5zZtneyvmK0PU8Lv0urEHqk3QRoxhe7sEYHiazNd757Yy Tg2SnYta8QIbxTaQ0IPraMJycs3rSOnIWjlivobi4Qm5vgebitqvMtUoozjqFJwDcFhA=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=D+qr3LcfQUY5+YKO81TyCg9G/rzOpISw29L1tnISZOg=; b=NrbmeRINB5y0L6pMFkSTYlUN48 FxkhZ64QwfEB5CMXMgWl8WG5HTTrmVVZrqygMCf+zTKfPLfBxewEyvvnOv28+NaoXmzvER4lbozuZ /q1ArYwREuF1uULGVZy7CCsIVOFJlTkeTrlpF8+KeePX+EDTsyfC5IIBfDiuq9QNBIPw=; Received: from mout-p-102.mailbox.org ([80.241.56.152]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1qjdZ0-0006Qk-3e for openvpn-devel@lists.sourceforge.net; Fri, 22 Sep 2023 10:39:13 +0000 Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4RsTK118Gcz9smn; Fri, 22 Sep 2023 12:39:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lichtenheld.com; s=MBO0001; t=1695379141; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=D+qr3LcfQUY5+YKO81TyCg9G/rzOpISw29L1tnISZOg=; b=L2sOi6rCbyptZbUMUIDdy4SNSXUtWWKjp8t0kekQlBqkSz5MzNjejc/iD/8QQrZ2M4RC9w QTgr+JRoyp5wZxJUq1s5QrIXGOQjBW5ECzxMs1iuAWhAS0PBZ5tRQJyLL7nCyW4nhftNuJ bxXMwDlExWEpfCdevn/mUNrFOLG77w8fO1C8qcewpCPOyMoLKCNy1GuRmlE0UEQF5BwmWv iivg18eVvqQJh7BgVvpNdSHJ0UcbENL7H1fAPKOpwSOHlq0YTF3pKRDze9dt3rZE4VZ1Iu gikXPExV9ib6vB+FNRmUi2yOZ2PGF+9UhE+R0Aah+nLtnKcaYAp/aSQhtkh/dA== From: Frank Lichtenheld To: openvpn-devel@lists.sourceforge.net Date: Fri, 22 Sep 2023 12:39:00 +0200 Message-Id: <20230922103900.37205-1-frank@lichtenheld.com> In-Reply-To: References: MIME-Version: 1.0 X-Spam-Score: -0.9 (/) X-Spam-Report: Spam detection software, running on the system "util-spamd-2.v13.lw.sourceforge.com", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Lev Stipakov 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 --- Content analysis details: (-0.9 points, 6.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [80.241.56.152 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-Headers-End: 1qjdZ0-0006Qk-3e Subject: [Openvpn-devel] [PATCH] CMake: fix HAVE_DAEMON detection on Linux X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Lev Stipakov , Gert Doering Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox X-GMAIL-THRID: =?utf-8?q?1777733945984956760?= X-GMAIL-MSGID: =?utf-8?q?1777733945984956760?= From: Lev Stipakov 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 --- This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master. Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/362 This mail reflects revision 1 of this Change. Acked-by according to Gerrit (reflected above): cron2 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)