diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-04-07 15:21:32 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-04-08 08:34:39 +0200 |
commit | 0922c5ab2da1106fdb9a750c2d71d0cd04146394 (patch) | |
tree | 542ceb9b97c088e9d4fd1c34f211ae81f8a4ef55 /lib | |
parent | 3413cf7a6bd992fa722cc9674176beb15446502b (diff) | |
download | samba-0922c5ab2da1106fdb9a750c2d71d0cd04146394.tar.gz samba-0922c5ab2da1106fdb9a750c2d71d0cd04146394.tar.bz2 samba-0922c5ab2da1106fdb9a750c2d71d0cd04146394.zip |
Revert "socket-wrapper: not all systems have FIONREAD defined"
This reverts commit 710aa773d54509de34404f9992c5058ddfa45f3b.
We rely on FIONREAD in a lot of other parts in the code,
so there's no need to have an ifdef for it in the socket_wrapper code.
On tru64 FIONREAD is defined in <sys/ioctl.h>
and we include <sys/ioctl.h> via "system/network.h".
Tridge: maybe a HAVE_SYS_IOCTL_H was missing at the time you tried
it on tru64?
If we find a platform that doesn't support it,
we need to bail out at configure time or
provide a replacement in libreplace.
metze
Diffstat (limited to 'lib')
-rw-r--r-- | lib/socket_wrapper/socket_wrapper.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/socket_wrapper/socket_wrapper.c b/lib/socket_wrapper/socket_wrapper.c index c7530c9a15..9d732ee652 100644 --- a/lib/socket_wrapper/socket_wrapper.c +++ b/lib/socket_wrapper/socket_wrapper.c @@ -2002,7 +2002,6 @@ _PUBLIC_ int swrap_ioctl(int s, int r, void *p) ret = real_ioctl(s, r, p); -#ifdef FIONREAD switch (r) { case FIONREAD: value = *((int *)p); @@ -2013,7 +2012,6 @@ _PUBLIC_ int swrap_ioctl(int s, int r, void *p) } break; } -#endif return ret; } |