More cleanups for CYGWIN from Norman Vine
This commit is contained in:
@@ -899,7 +899,7 @@ bool sockbuf::atmark () const
|
||||
// return true, if the read pointer for socket points to an
|
||||
// out of band data
|
||||
{
|
||||
#if !(defined(__CYGWIN__) || defined(WIN32))
|
||||
#if !defined(WIN32) || defined(__CYGWIN__)
|
||||
int arg;
|
||||
if (::ioctl (rep->sock, SIOCATMARK, &arg) == -1)
|
||||
throw sockerr (errno, "sockbuf::atmark", sockname.c_str());
|
||||
@@ -911,7 +911,8 @@ bool sockbuf::atmark () const
|
||||
return arg!=0;
|
||||
}
|
||||
|
||||
#if !(defined(__CYGWIN__) || defined(WIN32))
|
||||
#if !defined(WIN32)
|
||||
//#if !(defined(__CYGWIN__) || defined(WIN32))
|
||||
int sockbuf::pgrp () const
|
||||
// return the process group id that would receive SIGIO and SIGURG
|
||||
// signals
|
||||
|
||||
@@ -49,8 +49,10 @@
|
||||
#else
|
||||
# include <windows.h>
|
||||
# include <Wininet.h>
|
||||
#ifdef _MSC_VER
|
||||
# pragma comment(lib, "Wininet")
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __sgi
|
||||
typedef int socklen_t;
|
||||
@@ -316,7 +318,7 @@ class sockbuf: public streambuf
|
||||
#if defined(__CYGWIN__) || !defined(WIN32)
|
||||
void async(bool set=true) const;
|
||||
#endif
|
||||
#if !defined(__CYGWIN__) || !defined(WIN32)
|
||||
#if !defined(WIN32)
|
||||
int pgrp() const;
|
||||
int pgrp(int new_pgrp) const;
|
||||
void closeonexec(bool set=true) const;
|
||||
|
||||
Reference in New Issue
Block a user