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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user