Signed-off-by: Gurucharan Shetty <gshe...@nicira.com> --- lib/util.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/lib/util.c b/lib/util.c index bbca262..3f9a2e2 100644 --- a/lib/util.c +++ b/lib/util.c @@ -646,7 +646,11 @@ get_cwd(void) size_t size; /* Get maximum path length or at least a reasonable estimate. */ +#ifndef _WIN32 path_max = pathconf(".", _PC_PATH_MAX); +#else + path_max = MAX_PATH; +#endif size = (path_max < 0 ? 1024 : path_max > 10240 ? 10240 : path_max); -- 1.7.9.5 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev