From patchwork Fri Sep 16 23:41:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: mader.raphael@gmx.at X-Patchwork-Id: 2761 X-Patchwork-Delegate: davids@openvpn.net Return-Path: Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director12.mail.ord1d.rsapps.net ([172.30.191.6]) by backend30.mail.ord1d.rsapps.net with LMTP id UL91OZuWJWO1WAAAIUCqbw (envelope-from ) for ; Sat, 17 Sep 2022 05:42:51 -0400 Received: from proxy5.mail.ord1d.rsapps.net ([172.30.191.6]) by director12.mail.ord1d.rsapps.net with LMTP id ON8dOZuWJWMHegAAIasKDg (envelope-from ) for ; Sat, 17 Sep 2022 05:42:51 -0400 Received: from smtp36.gate.ord1c ([172.30.191.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy5.mail.ord1d.rsapps.net with LMTPS id EPgTOZuWJWNhbQAA8Zzt7w (envelope-from ) for ; Sat, 17 Sep 2022 05:42:51 -0400 X-Spam-Threshold: 95 X-Spam-Score: 0 X-Spam-Flag: NO X-Virus-Scanned: OK X-Orig-To: openvpnslackdevel@openvpn.net X-Originating-Ip: [216.105.38.7] Authentication-Results: smtp36.gate.ord1c.rsapps.net; iprev=pass policy.iprev="216.105.38.7"; spf=pass smtp.mailfrom="openvpn-devel-bounces@lists.sourceforge.net" smtp.helo="lists.sourceforge.net"; dkim=fail (signature verification failed) header.d=sourceforge.net; dkim=fail (signature verification failed) header.d=sf.net; dkim=fail (signature verification failed) header.d=gmx.net; dmarc=fail (p=none; dis=none) header.from=gmx.at X-Suspicious-Flag: YES X-Classification-ID: 18841fac-366d-11ed-8a33-5452006630bd-1-1 Received: from [216.105.38.7] ([216.105.38.7:55128] helo=lists.sourceforge.net) by smtp36.gate.ord1c.rsapps.net (envelope-from ) (ecelerity 4.2.38.62370 r(:)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id B5/F2-18552-B9695236; Sat, 17 Sep 2022 05:42:51 -0400 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 1oZUKc-0007QT-6V; Sat, 17 Sep 2022 09:41:50 +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 1oZUKa-0007Py-Oi for openvpn-devel@lists.sourceforge.net; Sat, 17 Sep 2022 09:41:48 +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: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:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=h4uqVTjmNeEsAkOC5PcuOEyglm+PJpTCiEARKifoLdY=; b=CnOiHOuKv7BemgiNM6xfs9fOaO J034KcffANKlNy4X31FHK2WFgzIjokDdqdi+WAO5+ZkzCL6d1xap9Y9Ykj4OCQePJJ7XOc7puVNcn vLzgldxSrmlD06S9vhCA4NxTvwuInlZHjB0Chff+P9FnnK//hKLXYdLcYlqvk++1ttn4=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version: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:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=h4uqVTjmNeEsAkOC5PcuOEyglm+PJpTCiEARKifoLdY=; b=k qcToWpY5VSQ/JdTtbr+T/+PwZqLD3BVUFGtlcntGgXMsCk1VlBrCWYu0adtBaGooFVLCGRyRJVtLF m6ftxeL1JZCkkS3z269v+NkqBWvD2qRYX0g2xFH85PQW713F62CloE00HVxZbA+lTW15Ys2jSsyap knK1pvTKAi3Ngvok=; Received: from mout.gmx.net ([212.227.15.18]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1oZUKP-00B6HU-OH for openvpn-devel@lists.sourceforge.net; Sat, 17 Sep 2022 09:41:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1663407688; bh=VLDsfmboSddXozFhNohQ0Sra17s4PIFpXAUXvECRZfs=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=k4KFP1A+ps87gMp5iw5tvxjGUVwwc4EVg6aiQ82z0/DPhxZRYXQ9VknqxQGodENer ikqCHxIUV3pPRG1o0r/jf8u3C8MtS/qdAqifrdmHPOB3nIKsDxGYP3RlJAF+QYiZHO DBW8eAGplkE+9cxrXNhhUom5Hq1ZSJJnAZsLPfKY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([194.166.239.65]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MXGvM-1ooQQL3Sk2-00Yi4X; Sat, 17 Sep 2022 11:41:27 +0200 From: mader.raphael@gmx.at To: openvpn-devel@lists.sourceforge.net Date: Sat, 17 Sep 2022 11:41:16 +0200 Message-Id: <20220917094116.1765-1-mader.raphael@gmx.at> X-Mailer: git-send-email 2.37.3.windows.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:t2g9acLkmCcdlTPcW5ynvHInGg29FU5lJgx5bJOJVVCv0lQ0lto /ZMU203IJXx5VVDGvBozLyM7CLXYu22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DZHfopUmlT7cOZ3wq/1Q1Xmx3TeRPxRFkxpeI+cDfXkmYR7qzGTJ20s4BrltZfQVZslAXAOH A9wAi6c6nWDU3b6Y/i2iUS/IvIEKxsNrEPp7c9A6/VTkAGHG38Eux+N8PrPNJC8eYt/oO03Ma 0iqzUAMqP/Qgy1Vpf42LvJjLy5A1yNaA2YEItcqFQlcaicJPfzDE+K3S/IioHDokdy4H2WhB6 HAyM1z/K+HOoO8pu5OdP+IDTn04Yv0YUu3SaWp17e95pKXYFPPq2aZM/g1y4PjIDOlMIbt6Yu 2sWr/SLQ5HUSgM4VfR6G2h8Mnl 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: Raphael Mader When building in a non-systemd environment, `#include ` causes the build to break. Signed-off-by: Raphael Mader --- src/log/logwriters/journald.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Content analysis details: (-0.7 points, 6.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.15.18 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.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [mader.raphael[at]gmx.at] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.15.18 listed in wl.mailspike.net] X-Headers-End: 1oZUKP-00B6HU-OH Subject: [Openvpn-devel] [PATCH openvpn3-linux] Fix non-systemd build 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: , Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox From: Raphael Mader When building in a non-systemd environment, `#include ` causes the build to break. Signed-off-by: Raphael Mader --- src/log/logwriters/journald.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.37.3.windows.1 diff --git a/src/log/logwriters/journald.cpp b/src/log/logwriters/journald.cpp index f0fc85f..beb06b0 100644 --- a/src/log/logwriters/journald.cpp +++ b/src/log/logwriters/journald.cpp @@ -23,6 +23,8 @@ * @brief Implementation of JournaldWriter */ +#ifdef HAVE_SYSTEMD + #include #include #include @@ -34,8 +36,6 @@ #include "log/logwriters/journald.hpp" -#ifdef HAVE_SYSTEMD - JournaldWriter::JournaldWriter() : LogWriter() {