git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1ccbfb
)
socket-wrapper: not all systems have FIONREAD defined
author
Andrew Tridgell
<tridge@samba.org>
Sat, 3 Apr 2010 02:30:05 +0000
(13:30 +1100)
committer
Andrew Tridgell
<tridge@samba.org>
Sat, 3 Apr 2010 02:31:12 +0000
(13:31 +1100)
tru64 for example
lib/socket_wrapper/socket_wrapper.c
patch
|
blob
|
history
diff --git
a/lib/socket_wrapper/socket_wrapper.c
b/lib/socket_wrapper/socket_wrapper.c
index 9d732ee65299d7e18d7e9222c11776f1e7329eab..c7530c9a15ac706324a14b0036d329a515a864e8 100644
(file)
--- 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;
}