File tree 4 files changed +29
-5
lines changed 4 files changed +29
-5
lines changed Original file line number Diff line number Diff line change 11
11
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
12
12
* Portions Copyright (c) 1994, Regents of the University of California
13
13
*
14
- * $PostgreSQL: pgsql/src/include/libpq/libpq-be.h,v 1.69 2009/01/01 17:23:59 momjian Exp $
14
+ * $PostgreSQL: pgsql/src/include/libpq/libpq-be.h,v 1.70 2009/04/19 22:37:13 tgl Exp $
15
15
*
16
16
*-------------------------------------------------------------------------
17
17
*/
47
47
48
48
#ifdef ENABLE_SSPI
49
49
#define SECURITY_WIN32
50
+ #if defined(WIN32 ) && !defined(WIN32_ONLY_COMPILER )
51
+ #include <ntsecapi.h>
52
+ #endif
50
53
#include <security.h>
51
54
#undef SECURITY_WIN32
52
55
Original file line number Diff line number Diff line change 1
- /* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.86 2009/01/21 10:30:02 mha Exp $ */
1
+ /* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.87 2009/04/19 22:37:13 tgl Exp $ */
2
2
3
3
#if defined(_MSC_VER ) || defined(__BORLANDC__ )
4
4
#define WIN32_ONLY_COMPILER
@@ -297,7 +297,7 @@ extern void pgwin32_unsetenv(const char *);
297
297
#define putenv (x ) pgwin32_putenv(x)
298
298
#define unsetenv (x ) pgwin32_unsetenv(x)
299
299
300
- /* Things that exist in MingW headers, but need to be added to MSVC */
300
+ /* Things that exist in MingW headers, but need to be added to MSVC & BCC */
301
301
#ifdef WIN32_ONLY_COMPILER
302
302
typedef long ssize_t ;
303
303
#ifndef __BORLANDC__
@@ -335,4 +335,22 @@ typedef unsigned short mode_t;
335
335
/* Pulled from Makefile.port in mingw */
336
336
#define DLSUFFIX ".dll"
337
337
338
+ #ifdef __BORLANDC__
339
+
340
+ /* for port/dirent.c */
341
+ #ifndef INVALID_FILE_ATTRIBUTES
342
+ #define INVALID_FILE_ATTRIBUTES ((DWORD) -1)
343
+ #endif
344
+
345
+ /* for port/open.c */
346
+ #ifndef O_RANDOM
347
+ #define O_RANDOM 0x0010 /* File access is primarily random */
348
+ #define O_SEQUENTIAL 0x0020 /* File access is primarily sequential */
349
+ #define O_TEMPORARY 0x0040 /* Temporary file bit */
350
+ #define O_SHORT_LIVED 0x1000 /* Temporary storage file, try not to flush */
351
+ #define _O_SHORT_LIVED O_SHORT_LIVED
352
+ #endif /* ifndef O_RANDOM */
353
+
354
+ #endif /* __BORLANDC__ */
355
+
338
356
#endif
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ OUTFILENAME=blibpq
62
62
USERDEFINES =FRONTEND;NDEBUG;WIN32;_WINDOWS
63
63
64
64
CPP =bcc32.exe
65
- CPP_PROJ = -I$( BCB ) \include; ..\..\include; ..\..\include\port\win32 ;..\..\include\port\win32_msvc ;..\..\port -n"$(INTDIR ) " -WD -c -D$(USERDEFINES ) -tWM \
65
+ CPP_PROJ = -I..\..\include\port\win32_msvc; $( BCB ) \include; ..\..\include;..\..\include\port\win32 ;..\..\port -n"$(INTDIR ) " -WD -c -D$(USERDEFINES ) -tWM \
66
66
-a8 -X -w-use -w-par -w-pia -w-csu -w-aus -w-ccc
67
67
68
68
!IFDEF DEBUG
Original file line number Diff line number Diff line change 12
12
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
13
13
* Portions Copyright (c) 1994, Regents of the University of California
14
14
*
15
- * $PostgreSQL: pgsql/src/interfaces/libpq/libpq-int.h,v 1.139 2009/01/01 17:24:03 momjian Exp $
15
+ * $PostgreSQL: pgsql/src/interfaces/libpq/libpq-int.h,v 1.140 2009/04/19 22:37:13 tgl Exp $
16
16
*
17
17
*-------------------------------------------------------------------------
18
18
*/
55
55
56
56
#ifdef ENABLE_SSPI
57
57
#define SECURITY_WIN32
58
+ #if defined(WIN32 ) && !defined(WIN32_ONLY_COMPILER )
59
+ #include <ntsecapi.h>
60
+ #endif
58
61
#include <security.h>
59
62
#undef SECURITY_WIN32
60
63
You can’t perform that action at this time.
0 commit comments