Revert "socket-wrapper: not all systems have FIONREAD defined"
authorStefan Metzmacher <metze@samba.org>
Wed, 7 Apr 2010 13:21:32 +0000 (15:21 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 8 Apr 2010 06:34:39 +0000 (08:34 +0200)
commit0922c5ab2da1106fdb9a750c2d71d0cd04146394
tree542ceb9b97c088e9d4fd1c34f211ae81f8a4ef55
parent3413cf7a6bd992fa722cc9674176beb15446502b
Revert "socket-wrapper: not all systems have FIONREAD defined"

This reverts commit 710aa773d54509de34404f9992c5058ddfa45f3b.

We rely on FIONREAD in a lot of other parts in the code,
so there's no need to have an ifdef for it in the socket_wrapper code.

On tru64 FIONREAD is defined in <sys/ioctl.h>
and we include <sys/ioctl.h> via "system/network.h".

Tridge: maybe a HAVE_SYS_IOCTL_H was missing at the time you tried
it on tru64?

If we find a platform that doesn't support it,
we need to bail out at configure time or
provide a replacement in libreplace.

metze
lib/socket_wrapper/socket_wrapper.c