]> granicus.if.org Git - postgresql/commitdiff
Small WIN32_CLIENT_ONLY cleanup for new build patch.
authorBruce Momjian <bruce@momjian.us>
Mon, 27 Sep 2004 23:58:09 +0000 (23:58 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 27 Sep 2004 23:58:09 +0000 (23:58 +0000)
src/port/exec.c

index 3958e78781aca1b83978b2062d78c567ad300a1a..7d623a25d7d10542e573f86007170cfd49328388 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/port/exec.c,v 1.27 2004/09/27 22:11:23 momjian Exp $
+ *       $PostgreSQL: pgsql/src/port/exec.c,v 1.28 2004/09/27 23:58:09 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -22,7 +22,7 @@
 #include <pwd.h>
 #include <sys/stat.h>
 #include <sys/wait.h>
-#if !defined(_MSC_VER) && !defined(__BORLANDC__)
+#ifndef WIN32_CLIENT_ONLY
 #include <unistd.h>
 #endif
 
@@ -178,7 +178,7 @@ find_my_exec(const char *argv0, char *retpath)
                                test_path[MAXPGPATH];
        char       *path;
 
-#if !defined(_MSC_VER) && !defined(__BORLANDC__)
+#ifndef WIN32_CLIENT_ONLY
        if (!getcwd(cwd, MAXPGPATH))
 #else
        if (!GetCurrentDirectory(MAXPGPATH, cwd))