apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dr...@apache.org
Subject svn commit: r111512 - /apr/apr/trunk/network_io/unix/sockopt.c
Date Fri, 10 Dec 2004 15:30:35 GMT
Author: dreid
Date: Fri Dec 10 07:30:34 2004
New Revision: 111512

URL: http://svn.apache.org/viewcvs?view=rev&rev=111512
Log:
On BeOS R5 we don't have the option available.

Contributed by: Ingo Weinhold <bonefish at cs dot tu-berlin dot de>
Reviewed by: David Reid

Modified:
   apr/apr/trunk/network_io/unix/sockopt.c

Modified: apr/apr/trunk/network_io/unix/sockopt.c
Url: http://svn.apache.org/viewcvs/apr/apr/trunk/network_io/unix/sockopt.c?view=diff&rev=111512&p1=apr/apr/trunk/network_io/unix/sockopt.c&r1=111511&p2=apr/apr/trunk/network_io/unix/sockopt.c&r2=111512
==============================================================================
--- apr/apr/trunk/network_io/unix/sockopt.c	(original)
+++ apr/apr/trunk/network_io/unix/sockopt.c	Fri Dec 10 07:30:34 2004
@@ -323,6 +323,7 @@
 
 apr_status_t apr_socket_atmark(apr_socket_t *sock, int *atmark)
 {
+#ifndef BEOS_R5
     int oobmark;
 
     if (ioctl(sock->socketdes, SIOCATMARK, (void*) &oobmark) < 0)
@@ -331,8 +332,10 @@
     *atmark = (oobmark != 0);
 
     return APR_SUCCESS;
+#else /* BEOS_R5 */
+    return APR_ENOTIMPL;
+#endif
 }
-
 
 apr_status_t apr_gethostname(char *buf, apr_int32_t len, apr_pool_t *cont)
 {

Mime
View raw message