diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-04-03 13:30:05 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-03 13:31:12 +1100 |
commit | 710aa773d54509de34404f9992c5058ddfa45f3b (patch) | |
tree | e6898677f3454f36eb7a7f5c9939aeb40257d35f /lib | |
parent | c1ccbfba21713c3dfec88bb528a36d65a055a984 (diff) | |
download | samba-710aa773d54509de34404f9992c5058ddfa45f3b.tar.gz samba-710aa773d54509de34404f9992c5058ddfa45f3b.tar.bz2 samba-710aa773d54509de34404f9992c5058ddfa45f3b.zip |
socket-wrapper: not all systems have FIONREAD defined
tru64 for example
Diffstat (limited to 'lib')
-rw-r--r-- | lib/socket_wrapper/socket_wrapper.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/socket_wrapper/socket_wrapper.c b/lib/socket_wrapper/socket_wrapper.c index 9d732ee652..c7530c9a15 100644 --- a/lib/socket_wrapper/socket_wrapper.c +++ b/lib/socket_wrapper/socket_wrapper.c @@ -2002,6 +2002,7 @@ _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); @@ -2012,6 +2013,7 @@ _PUBLIC_ int swrap_ioctl(int s, int r, void *p) } break; } +#endif return ret; } |