X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Frealpath.c;h=f9d08dac8d6e35a6f409b69b3b92d991c83405c1;hb=a9519654032d2f09e76870d5d04dae2dff752c5b;hp=17e74ea71d7c7822b8a90177df57a8d7a2069aab;hpb=9353c6253d5fac1648b13ad9958468a2d9f6ad6f;p=libguestfs.git diff --git a/daemon/realpath.c b/daemon/realpath.c index 17e74ea..f9d08da 100644 --- a/daemon/realpath.c +++ b/daemon/realpath.c @@ -27,11 +27,14 @@ #include #include -#include "openat.h" - #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) {