diff options
| author | Alexander Barton <alex@barton.de> | 2002-03-13 00:15:55 +0000 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2002-03-13 00:15:55 +0000 |
| commit | 239727b41192b7df204d0f01846bb88e6d57b119 (patch) | |
| tree | 57abbeb6c0dc978af0d80c28a4211fd157f667a7 /src | |
| parent | 34d5434478e78eddb9b6d7257757d309dacd41dc (diff) | |
| download | ngircd-239727b41192b7df204d0f01846bb88e6d57b119.tar.gz ngircd-239727b41192b7df204d0f01846bb88e6d57b119.zip | |
- A/UX kennt O_NONBLOCK nicht? Oder in einem anderen Header? ...?
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/conn.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c index 07e51fb4..5e2546a9 100644 --- a/src/ngircd/conn.c +++ b/src/ngircd/conn.c @@ -9,7 +9,7 @@ * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. * - * $Id: conn.c,v 1.54 2002/03/12 23:45:30 alex Exp $ + * $Id: conn.c,v 1.55 2002/03/13 00:15:55 alex Exp $ * * connect.h: Verwaltung aller Netz-Verbindungen ("connections") */ @@ -1009,12 +1009,14 @@ LOCAL BOOLEAN Init_Socket( INT Sock ) INT on = 1; +#ifdef O_NONBLOCK /* A/UX kennt das nicht? */ if( fcntl( Sock, F_SETFL, O_NONBLOCK ) != 0 ) { Log( LOG_CRIT, "Can't enable non-blocking mode: %s!", strerror( errno )); close( Sock ); return FALSE; } +#endif if( setsockopt( Sock, SOL_SOCKET, SO_REUSEADDR, &on, (socklen_t)sizeof( on )) != 0) { Log( LOG_ERR, "Can't set socket options: %s!", strerror( errno )); |