diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-03-10 21:12:49 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-03-10 21:12:49 +0000 |
commit | 60a068b3897a27cbb1a13a6b050d05a0ca479055 (patch) | |
tree | 145b28e9421e24a29df2f9c3ff188af3d98800cf /src/include/c.h | |
parent | ae22a6c185bb82deb9fe547641969396cc3648b9 (diff) | |
download | postgresql-60a068b3897a27cbb1a13a6b050d05a0ca479055.tar.gz postgresql-60a068b3897a27cbb1a13a6b050d05a0ca479055.zip |
Move non-blocking code into its own /port file, for code clarity.
Diffstat (limited to 'src/include/c.h')
-rw-r--r-- | src/include/c.h | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/include/c.h b/src/include/c.h index 0562157333a..325cfc217d0 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -12,7 +12,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/c.h,v 1.159 2004/01/10 23:39:51 neilc Exp $ + * $PostgreSQL: pgsql/src/include/c.h,v 1.160 2004/03/10 21:12:46 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -689,20 +689,6 @@ typedef NameData *Name; #define PG_BINARY_W "w" #endif -#if !defined(WIN32) && !defined(__BEOS__) -#define FCNTL_NONBLOCK(sock) fcntl(sock, F_SETFL, O_NONBLOCK) -#else -extern long ioctlsocket_ret; - -/* Returns non-0 on failure, while fcntl() returns -1 on failure */ -#ifdef WIN32 -#define FCNTL_NONBLOCK(sock) ((ioctlsocket(sock, FIONBIO, &ioctlsocket_ret) == 0) ? 0 : -1) -#endif -#ifdef __BEOS__ -#define FCNTL_NONBLOCK(sock) ((ioctl(sock, FIONBIO, &ioctlsocket_ret) == 0) ? 0 : -1) -#endif -#endif - #if defined(sun) && defined(__sparc__) && !defined(__SVR4) #include <unistd.h> #endif |