|
6 | 6 | * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group |
7 | 7 | * |
8 | 8 | * IDENTIFICATION |
9 | | - * $PostgreSQL: pgsql/src/backend/port/win32/mingwcompat.c,v 1.8 2010/01/02 16:57:50 momjian Exp $ |
| 9 | + * $PostgreSQL: pgsql/src/backend/port/win32/mingwcompat.c,v 1.9 2010/02/09 19:55:14 mha Exp $ |
10 | 10 | * |
11 | 11 | *------------------------------------------------------------------------- |
12 | 12 | */ |
13 | 13 |
|
14 | 14 | #include"postgres.h" |
15 | 15 |
|
| 16 | +#ifndefWIN32_ONLY_COMPILER |
| 17 | +/* |
| 18 | + * MingW defines an extern to this struct, but the actual struct isn't present |
| 19 | + * in any library. It's trivial enough that we can safely defined it |
| 20 | + * ourselves. |
| 21 | + */ |
| 22 | +conststructin6_addrin6addr_any= {{{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}}}; |
| 23 | + |
| 24 | + |
16 | 25 | /* |
17 | 26 | * This file contains loaders for functions that are missing in the MinGW |
18 | 27 | * import libraries. It's only for actual Win32 API functions, so they are |
19 | 28 | * all present in proper Win32 compilers. |
20 | 29 | */ |
21 | | -#ifndefWIN32_ONLY_COMPILER |
22 | | - |
23 | 30 | staticHMODULEkernel32=NULL; |
24 | 31 |
|
25 | 32 | /* |
|