daemon/Win32: NAME_MAX does not exist on Windows, use FILENAME_MAX instead.
authorRichard Jones <rjones@redhat.com>
Fri, 20 Nov 2009 10:36:59 +0000 (10:36 +0000)
committerRichard Jones <rjones@redhat.com>
Fri, 20 Nov 2009 10:36:59 +0000 (10:36 +0000)
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)
 {