From patchwork Wed Oct 11 23:34:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Rozman X-Patchwork-Id: 31 Return-Path: Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director4.mail.ord1d.rsapps.net ([172.30.157.10]) by backend31.mail.ord1d.rsapps.net (Dovecot) with LMTP id eVuWGHBF31nwKQAAgoeIoA for ; Thu, 12 Oct 2017 06:35:28 -0400 Received: from proxy13.mail.ord1d.rsapps.net ([172.30.157.58]) by director4.mail.ord1d.rsapps.net (Dovecot) with LMTP id oVuHGHBF31nwYAAAHDmxtw ; Thu, 12 Oct 2017 06:35:28 -0400 Received: from smtp21.gate.ord1d ([172.30.191.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy13.mail.ord1d.rsapps.net (Dovecot) with LMTP id SW9WAxhC31kcaAAAgjf6aA ; Thu, 12 Oct 2017 06:35:28 -0400 X-Spam-Threshold: 95 X-Spam-Score: 0 X-Spam-Flag: NO X-Virus-Scanned: OK X-MessageSniffer-Scan-Result: 0 X-MessageSniffer-Rules: 0-298-1001-1200-w 0-298-1001-1564-w 0-298-0-8471-f X-CMAE-Scan-Result: 0 X-CNFS-Analysis: v=2.2 cv=ZeFfDYdA c=1 sm=1 tr=0 a=Q8DxjiC8O3VT/NpP1XjEZQ==:117 a=Q8DxjiC8O3VT/NpP1XjEZQ==:17 a=kj9zAlcOel0A:10 a=02M-m0pO-4AA:10 a=WiVod9pSvdkA:10 a=9sSjY8p1AAAA:8 a=P_JWiMecAAAA:8 a=FP58Ms26AAAA:8 a=vHAA7dTlehMFdk_ZWt4A:9 a=CjuIK1q_8ugA:10 a=-FEs8UIgK8oA:10 a=NWVoK91CQyQA:10 a=ub54wNWiXv_DzeFsgEJW:22 a=D0-HAvA3Hk9NMREbgwuX:22 X-Orig-To: justin@openvpn.net X-Originating-Ip: [216.34.181.88] Authentication-Results: smtp21.gate.ord1d.rsapps.net; iprev=pass policy.iprev="216.34.181.88"; 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=rozman.si; dmarc=fail (p=none; dis=none) header.from=rozman.si X-Classification-ID: 0f90a4c6-af39-11e7-94c0-525400a98691-1-1 Received: from [216.34.181.88] ([216.34.181.88:16652] helo=lists.sourceforge.net) by smtp21.gate.ord1d.rsapps.net (envelope-from ) (ecelerity 4.2.1.56364 r(Core:4.2.1.14)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id 4B/60-27445-E654FD95; Thu, 12 Oct 2017 06:35:26 -0400 Received: from localhost ([127.0.0.1] helo=sfs-ml-2.v29.ch3.sourceforge.com) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.89) (envelope-from ) id 1e2apV-0005Xp-0k; Thu, 12 Oct 2017 10:35:05 +0000 Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.89) (envelope-from ) id 1e2apS-0005Xi-Cu for openvpn-devel@lists.sourceforge.net; Thu, 12 Oct 2017 10:35:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Message-Id:Date:Subject:Cc:To:From; bh=cH3HEqrDVavuKDJ2zJq5dBndcKH+Wq61mA6xOXc6a/Q=; b=Pg703Xy6suhEifQ6CLwbss5ooih52kPgBWiom81HKAievHGtW2nj759PPxalucesqqO+3l8LwJfKrEuAXMq7yNhqzoGVOwzs8NcMBcMfBCihq7126QoFkJMAsXaUlPzdOqCpBWOMhUvl0V3jT6x97rs3hH9FEKSzh7cw2NcLWnE=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x; h=Message-Id:Date:Subject:Cc:To:From; bh=cH3HEqrDVavuKDJ2zJq5dBndcKH+Wq61mA6xOXc6a/Q=; b=JXYJ9SjBH02eeenODBwwiUErJiGUsBrGO/VvPV9wziw+3JBXE8ojxbdtngjZe89BDghm62/nO0Y43ymH4SEXa4RzJ6nOmWVuzeHJqJ8WGMcDKkE1+cPp5YW5v0xVMStXHf2v9nIWNsZnQBu0Xlf8a0UKutnq53MTHvdRAADhu2w=; Received-SPF: pass (sog-mx-3.v43.ch3.sourceforge.com: domain of rozman.si designates 89.212.80.145 as permitted sender) client-ip=89.212.80.145; envelope-from=simon@rozman.si; helo=amebis01.amebis.si; Received: from amebis01.amebis.si ([89.212.80.145]) by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1e2apP-0007vo-FD for openvpn-devel@lists.sourceforge.net; Thu, 12 Oct 2017 10:35:02 +0000 Received: from SR5.amebis.doma (sr5.amebis.doma [192.168.100.81]) by amebis01.amebis.si (Postfix) with ESMTP id 9CEAB407BF; Thu, 12 Oct 2017 12:34:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rozman.si; s=default; t=1507804490; bh=ANAwoed1kVOgsddtB8/5UBCuuZMgnWuOo9KZVAPOHvc=; h=From:To:Cc:Subject:Date:Message-Id; b=BqDuLrYryMO7Wq+GAi/NQOm8M2PXegOf/Ytd++TQBgLJugf2sUNBttUzMEioZBUMQ SjqDRIQnx/7sDBI7o8oire8yBiwBv/UjI6Fr8zwhVxHMCca4zwjbkilnLsdon7sHLr 8iFP9sqA0AUXrg2Fs9T34qXfu3RnHWquCxxfhe3o= From: Simon Rozman To: openvpn-devel@lists.sourceforge.net Date: Thu, 12 Oct 2017 12:34:48 +0200 Message-Id: <20171012103448.7632-1-simon@rozman.si> X-Mailer: git-send-email 2.9.0.windows.1 X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [89.212.80.145 listed in list.dnswl.org] -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_PASS SPF: sender matches SPF record -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 0.1 AWL AWL: Adjusted score from AWL reputation of From: address X-Headers-End: 1e2apP-0007vo-FD Subject: [Openvpn-devel] [PATCH] Fix local #include to use quoted form 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: , MIME-Version: 1.0 Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox .h include files from the same folder or addressed relatively to the same folder should be #included using quoted form in MSVC. The angled form is reserved for include files from folders specified using /I path. Using angled form, MSVC fails to locate local #include file, unless current folder is added to the include search path: /I . --- src/openvpnserv/common.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/openvpnserv/common.c b/src/openvpnserv/common.c index 0c9098f..e77d7ab 100644 --- a/src/openvpnserv/common.c +++ b/src/openvpnserv/common.c @@ -21,8 +21,9 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include -#include +#include "service.h" +#include "validate.h" + /* * These are necessary due to certain buggy implementations of (v)snprintf, * that don't guarantee null termination for size > 0.