diff options
author | dreid <dreid@13f79535-47bb-0310-9956-ffa450edef68> | 2004-12-10 15:30:34 +0000 |
---|---|---|
committer | dreid <dreid@13f79535-47bb-0310-9956-ffa450edef68> | 2004-12-10 15:30:34 +0000 |
commit | e4d07a79ce5262fd9386ceae25178758846d444d (patch) | |
tree | 968822ae7649f63d9dc0173138d77ed1b7f7cbc2 | |
parent | 8f4164b8cae37f89799fd0eb1ff2d7604fc37179 (diff) | |
download | libapr-e4d07a79ce5262fd9386ceae25178758846d444d.tar.gz |
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
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@111512 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | network_io/unix/sockopt.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/network_io/unix/sockopt.c b/network_io/unix/sockopt.c index a6c80a9a5..036215f61 100644 --- a/network_io/unix/sockopt.c +++ b/network_io/unix/sockopt.c @@ -323,6 +323,7 @@ apr_status_t apr_socket_opt_get(apr_socket_t *sock, 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,9 +332,11 @@ apr_status_t apr_socket_atmark(apr_socket_t *sock, int *atmark) *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) { if (gethostname(buf, len) == -1) { |