Skip to content

Commit 4a30da1

Browse files
committed
Add missing #define for mingw, per Magnus.
1 parent fe796ea commit 4a30da1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/regress/pg_regress.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
1212
* Portions Copyright (c) 1994, Regents of the University of California
1313
*
14-
* $PostgreSQL: pgsql/src/test/regress/pg_regress.c,v 1.30 2007/02/08 15:28:58 momjian Exp $
14+
* $PostgreSQL: pgsql/src/test/regress/pg_regress.c,v 1.31 2007/02/08 19:48:28 tgl Exp $
1515
*
1616
*-------------------------------------------------------------------------
1717
*/
@@ -137,6 +137,9 @@ __attribute__((format(printf, 2, 3)));
137137

138138
#ifdef WIN32
139139
typedef BOOL(WINAPI * __CreateRestrictedToken) (HANDLE, DWORD, DWORD, PSID_AND_ATTRIBUTES, DWORD, PLUID_AND_ATTRIBUTES, DWORD, PSID_AND_ATTRIBUTES, PHANDLE);
140+
141+
/* Windows API define missing from MingW headers */
142+
#define DISABLE_MAX_PRIVILEGE 0x1
140143
#endif
141144

142145
/*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy