daemon/Win32: NAME_MAX does not exist on Windows, use FILENAME_MAX instead.
[libguestfs.git] / daemon / realpath.c
index 17e74ea..02a82d6 100644 (file)
 #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)
 {