From 710aa773d54509de34404f9992c5058ddfa45f3b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 3 Apr 2010 13:30:05 +1100 Subject: socket-wrapper: not all systems have FIONREAD defined tru64 for example --- lib/socket_wrapper/socket_wrapper.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/socket_wrapper') 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; } -- cgit