On 10/17/08, Andrew Fenn <[EMAIL PROTECTED]> 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
_______________________________________________
ENet-discuss mailing list
[email protected]
http://lists.cubik.org/mailman/listinfo/enet-discuss

Reply via email to