summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--daemon/realpath.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/daemon/realpath.c b/daemon/realpath.c
index 17e74ea7..02a82d6a 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)
{