X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=src%2Fpazpar2.c;h=cb0d1625b4cfd3b0e8aba3d1813838ad324c016d;hb=ee0c5796c67648c25249bf34c035d512f98e87b4;hp=585c0f8548a8f13444d3444be72cb9a189392752;hpb=74580d1462b54e3659ea399c2352e44d8febfc4b;p=pazpar2-moved-to-github.git diff --git a/src/pazpar2.c b/src/pazpar2.c index 585c0f8..cb0d162 100644 --- a/src/pazpar2.c +++ b/src/pazpar2.c @@ -22,6 +22,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #endif #ifdef WIN32 #include +#include #endif #if HAVE_UNISTD_H #include @@ -157,7 +158,13 @@ static int sc_main( show_version(); break; case 'w': - if (chdir(arg)) + if ( +#ifdef WIN32 + _chdir +#else + chdir +#endif + (arg)) { yaz_log(YLOG_FATAL|YLOG_ERRNO, "chdir %s", arg); return 1;