Define PATH_MAX on Windows as _MAX_PATH, so we can use it everywhere

This commit is contained in:
Ondřej Surý 2018-03-28 20:57:20 +02:00
parent 7749d7945f
commit 7467735258
2 changed files with 7 additions and 1 deletions

View file

@ -13,8 +13,10 @@
#include <config.h>
#include <limits.h>
#ifdef HAVE_LMDB
#include <lmdb.h>
#include <lmdb.h>
#endif
#include <isc/file.h>

View file

@ -24,6 +24,10 @@
*** Network.
***/
#ifndef PATH_MAX
#define PATH_MAX _MAX_PATH
#endif
#define ISC_PLATFORM_HAVEIPV6
#if _MSC_VER > 1200
#define ISC_PLATFORM_HAVEIN6PKTINFO