From: Ben Collins Date: Sat, 13 Mar 1999 20:29:35 +0000 (+0000) Subject: Check that FIONBIO is defined, also add defined(__BEOS__) to list for send/recv defines X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~393 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9d2ea940e03b38c9f33a41d87a7fd62362883781;p=openldap Check that FIONBIO is defined, also add defined(__BEOS__) to list for send/recv defines --- diff --git a/libraries/liblber/sockbuf.c b/libraries/liblber/sockbuf.c index 827367757c..c693fdc2de 100644 --- a/libraries/liblber/sockbuf.c +++ b/libraries/liblber/sockbuf.c @@ -580,12 +580,14 @@ int lber_pvt_sb_set_nonblock( Sockbuf *sb, int nb ) sb->sb_read_ahead = 0; #endif } +#ifdef FIONBIO if (lber_pvt_sb_in_use(sb)) { int status = (nb!=0); if (ioctl( lber_pvt_sb_get_desc(sb), FIONBIO, (caddr_t)&status ) == -1 ) { return -1; } } +#endif /* FIONBIO */ return 0; } #endif @@ -751,7 +753,7 @@ stream_read( Sockbuf *sb, void *buf, long len ) return tcpread( lber_pvt_sb_get_desc(sb), 0, (unsigned char *)buf, len, NULL ); #elif (defined(DOS) && (defined(PCNFS) || defined( WINSOCK))) \ - || defined( _WIN32) + || defined( _WIN32) || defined ( __BEOS__ ) /* * PCNFS (under DOS) */ @@ -784,7 +786,7 @@ stream_write( Sockbuf *sb, void *buf, long len ) (unsigned char *)(buf), (len