diff options
Diffstat (limited to 'src/include/c.h')
-rw-r--r-- | src/include/c.h | 13 |
1 files changed, 12 insertions, 1 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 */ |