diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/c.h | 13 | ||||
-rw-r--r-- | src/include/postgres.h | 3 |
2 files changed, 13 insertions, 3 deletions
diff --git a/src/include/c.h b/src/include/c.h index 13ac2cfcd1b..be6f4dad65c 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -8,7 +8,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: c.h,v 1.70 2000/05/28 17:56:09 tgl Exp $ + * $Id: c.h,v 1.71 2000/06/02 15:57:40 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -50,6 +50,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <sys/fcntl.h> #ifdef STDC_HEADERS #include <stddef.h> #include <stdarg.h> @@ -895,6 +896,16 @@ extern char *vararg_format(const char *fmt,...); * ---------------------------------------------------------------- */ +#ifndef __CYGWIN32__ +#define PG_BINARY 0 +#define PG_BINARY_R "rb" +#define PG_BINARY_W "wb" +#else +#define PG_BINARY O_BINARY +#define PG_BINARY_R "r" +#define PG_BINARY_W "w" +#endif + #ifdef FIXADE #if defined(hpux) #include "port/hpux/fixade.h" /* for unaligned access fixup */ diff --git a/src/include/postgres.h b/src/include/postgres.h index ee02a3c0c38..c64eab2cc46 100644 --- a/src/include/postgres.h +++ b/src/include/postgres.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1995, Regents of the University of California * - * $Id: postgres.h,v 1.39 2000/05/28 17:56:12 tgl Exp $ + * $Id: postgres.h,v 1.40 2000/06/02 15:57:40 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -229,7 +229,6 @@ typedef uint32 CommandId; */ #ifdef CYR_RECODE extern void SetCharSet(); - #endif /* CYR_RECODE */ #endif /* POSTGRES_H */ |