]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fix local #include to use quoted form
authorSimon Rozman <simon@rozman.si>
Thu, 12 Oct 2017 10:34:48 +0000 (12:34 +0200)
committerGert Doering <gert@greenie.muc.de>
Sat, 4 Nov 2017 18:37:28 +0000 (19:37 +0100)
.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 <selva.nair@gmail.com>
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 <gert@greenie.muc.de>
(cherry picked from commit d2a7415f265aea5e0f04d80e48af506e153ba0f4)

src/openvpnserv/common.c

index 0c9098fe36175304ac5a5e26838b8093b408f5b3..e77d7ab74093583cdf198b39f0949b45ac60777b 100644 (file)
@@ -21,8 +21,9 @@
  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#include <service.h>
-#include <validate.h>
+#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.