From: Richard Jones Date: Fri, 20 Nov 2009 10:36:59 +0000 (+0000) Subject: daemon/Win32: NAME_MAX does not exist on Windows, use FILENAME_MAX instead. X-Git-Tag: 1.0.80~87 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=7d8a3404b27fcd71f84dbe4c022c4435d0070d6b;p=libguestfs.git daemon/Win32: NAME_MAX does not exist on Windows, use FILENAME_MAX instead. --- diff --git a/daemon/realpath.c b/daemon/realpath.c index 17e74ea..02a82d6 100644 --- a/daemon/realpath.c +++ b/daemon/realpath.c @@ -32,6 +32,11 @@ #include "daemon.h" #include "actions.h" +/* On Windows, NAME_MAX is not defined. */ +#ifndef NAME_MAX +#define NAME_MAX FILENAME_MAX +#endif + char * do_realpath (const char *path) {