diff options
author | Bruce Momjian <bruce@momjian.us> | 2006-06-07 22:24:46 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2006-06-07 22:24:46 +0000 |
commit | 399a36a75d2d06bfdb91402713d408271b4833ba (patch) | |
tree | b8391f6bda4680d37ac430c3270c67bde979d842 /src/port/exec.c | |
parent | 877e296306a2017a18fc7086e9742c8ee3e0a665 (diff) | |
download | postgresql-399a36a75d2d06bfdb91402713d408271b4833ba.tar.gz postgresql-399a36a75d2d06bfdb91402713d408271b4833ba.zip |
Prepare code to be built by MSVC:
o remove many WIN32_CLIENT_ONLY defines
o add WIN32_ONLY_COMPILER define
o add 3rd argument to open() for portability
o add include/port/win32_msvc directory for
system includes
Magnus Hagander
Diffstat (limited to 'src/port/exec.c')
-rw-r--r-- | src/port/exec.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/port/exec.c b/src/port/exec.c index 563d986ec6d..7abc3d650b6 100644 --- a/src/port/exec.c +++ b/src/port/exec.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/port/exec.c,v 1.41 2006/03/05 15:59:10 momjian Exp $ + * $PostgreSQL: pgsql/src/port/exec.c,v 1.42 2006/06/07 22:24:46 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -24,9 +24,7 @@ #include <pwd.h> #include <sys/stat.h> #include <sys/wait.h> -#ifndef WIN32_CLIENT_ONLY #include <unistd.h> -#endif #ifndef S_IRUSR /* XXX [TRH] should be in a header */ #define S_IRUSR S_IREAD @@ -48,7 +46,7 @@ #define log_error(str, param) (fprintf(stderr, str, param), fputc('\n', stderr)) #endif -#ifdef WIN32_CLIENT_ONLY +#ifdef WIN32_ONLY_COMPILER #define getcwd(cwd,len) GetCurrentDirectory(len, cwd) #endif |