mirror of
https://github.com/postgres/postgres.git
synced 2025-06-04 00:02:37 -04:00
Define the value for in6addr_any on MingW, since it provides the struct
only in the header files and not in any libraries, yet declare it as an extern.
This commit is contained in:
parent
8740fe7136
commit
a8d3a395aa
@ -6,20 +6,27 @@
|
|||||||
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/port/win32/mingwcompat.c,v 1.8 2010/01/02 16:57:50 momjian Exp $
|
* $PostgreSQL: pgsql/src/backend/port/win32/mingwcompat.c,v 1.9 2010/02/09 19:55:14 mha Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
|
#ifndef WIN32_ONLY_COMPILER
|
||||||
|
/*
|
||||||
|
* MingW defines an extern to this struct, but the actual struct isn't present
|
||||||
|
* in any library. It's trivial enough that we can safely defined it
|
||||||
|
* ourselves.
|
||||||
|
*/
|
||||||
|
const struct in6_addr in6addr_any = {{{0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0}}};
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file contains loaders for functions that are missing in the MinGW
|
* This file contains loaders for functions that are missing in the MinGW
|
||||||
* import libraries. It's only for actual Win32 API functions, so they are
|
* import libraries. It's only for actual Win32 API functions, so they are
|
||||||
* all present in proper Win32 compilers.
|
* all present in proper Win32 compilers.
|
||||||
*/
|
*/
|
||||||
#ifndef WIN32_ONLY_COMPILER
|
|
||||||
|
|
||||||
static HMODULE kernel32 = NULL;
|
static HMODULE kernel32 = NULL;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user