daemon/Win32: NAME_MAX does not exist on Windows, use FILENAME_MAX instead.

This commit is contained in:
Richard Jones
2009-11-20 10:36:59 +00:00
parent 688bdc1a06
commit 7d8a3404b2

View File

@@ -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)
{