[ENet-discuss] 1.2 build problems in linux

Bjørn Lindeijer bjorn at lindeijer.nl
Sat Oct 18 08:10:29 PDT 2008


On 10/17/08, Andrew Fenn <andrewfenn at gmail.com> wrote:
> I was in the cmake mailing list trying to find a replacement for the following:
>
>  AC_EGREP_HEADER(MSG_MAXIOVLEN, /usr/include/sys/socket.h,
>  AC_DEFINE(ENET_BUFFER_MAXIMUM, [MSG_MAXIOVLEN]))
>  AC_EGREP_HEADER(MSG_MAXIOVLEN, socket.h,
>  AC_DEFINE(ENET_BUFFER_MAXIMUM, [MSG_MAXIOVLEN]))
>
>  They pointed out to me that this does not actually do anything useful
>  which could not be done in code. I could get the same behaviour by
>  adding the following into the header file:
>
>  #ifdef MSG_MAXIOVLEN
>  #define ENET_BUFFER_MAXIMUM MSG_MAXIOVLEN
>  #endif
>
>  Is this true? I don't want to screw it up when I rewrite the build
>  script in cmake and get weird behaviour.

It seems to me like Lee suggested the exact same thing two days ago:

http://lists.cubik.org/pipermail/enet-discuss/2008-October/000975.html

Regards,
Bjørn


More information about the ENet-discuss mailing list