diff options
author | Richard Jones <rjones@redhat.com> | 2009-11-20 10:36:59 +0000 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-11-20 10:36:59 +0000 |
commit | 7d8a3404b27fcd71f84dbe4c022c4435d0070d6b (patch) | |
tree | 244e9afcfeb38da38b3ad5a1fe9be9ea4e9b30c6 /daemon/realpath.c | |
parent | 688bdc1a068a6c0bea58addd04d5bbe6dc1940c4 (diff) | |
download | libguestfs-7d8a3404b27fcd71f84dbe4c022c4435d0070d6b.tar.gz libguestfs-7d8a3404b27fcd71f84dbe4c022c4435d0070d6b.tar.xz libguestfs-7d8a3404b27fcd71f84dbe4c022c4435d0070d6b.zip |
daemon/Win32: NAME_MAX does not exist on Windows, use FILENAME_MAX instead.
Diffstat (limited to 'daemon/realpath.c')
-rw-r--r-- | daemon/realpath.c | 5 |
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) { |