From c6af7006219ec03ece4545355251e79b47d56e8c Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Thu, 12 Oct 2017 12:34:48 +0200 Subject: [PATCH] Fix local #include to use quoted form .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 . Acked-by: Selva Nair Message-Id: <20171012103448.7632-1-simon@rozman.si> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg15622.html Signed-off-by: Gert Doering (cherry picked from commit d2a7415f265aea5e0f04d80e48af506e153ba0f4) --- 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 0c9098fe3..e77d7ab74 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. -- 2.47.2