diff options
| author | Magnus Hagander <magnus@hagander.net> | 2010-02-16 19:26:02 +0000 |
|---|---|---|
| committer | Magnus Hagander <magnus@hagander.net> | 2010-02-16 19:26:02 +0000 |
| commit | 215cbc90f8db3fc8a70af5572b156f49216c2f70 (patch) | |
| tree | 23cae32cf9e7b6d38bc55e876f2ba2be115cf5c9 /src/include | |
| parent | 492eaefb90b9e60b608a1a4b2e3e68ce7c6c7c69 (diff) | |
Add emulation of non-blocking sockets to the win32 socket/signal layer,
and use this in pq_getbyte_if_available.
It's only a limited implementation which swithes the whole emulation layer
no non-blocking mode, but that's enough as long as non-blocking is only
used during a short period of time, and only one socket is accessed during
this time.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/port/win32.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/port/win32.h b/src/include/port/win32.h index 3ec81c4f7ed..6dbda80f4fb 100644 --- a/src/include/port/win32.h +++ b/src/include/port/win32.h @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.92 2010/02/13 02:34:14 tgl Exp $ */ +/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.93 2010/02/16 19:26:02 mha Exp $ */ #if defined(_MSC_VER) || defined(__BORLANDC__) #define WIN32_ONLY_COMPILER @@ -283,6 +283,8 @@ int pgwin32_send(SOCKET s, char *buf, int len, int flags); const char *pgwin32_socket_strerror(int err); int pgwin32_waitforsinglesocket(SOCKET s, int what, int timeout); +extern int pgwin32_noblock; + /* in backend/port/win32/security.c */ extern int pgwin32_is_admin(void); extern int pgwin32_is_service(void); |
