1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

socket-wrapper: not all systems have FIONREAD defined

tru64 for example
This commit is contained in:
Andrew Tridgell
2010-04-03 13:30:05 +11:00
parent c1ccbfba21
commit 710aa773d5

View File

@ -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;
}