--- isic.h.orig 2006-12-16 01:08:44.000000000 +0100 +++ isic.h 2014-08-11 16:25:34.551003726 +0200 @@ -5,11 +5,15 @@ #endif #include +#include +#include #include #include #include #include +#include +#include #ifndef ETHER_FRAME_SIZE #define ETHER_FRAME_SIZE 1500 @@ -21,11 +25,6 @@ #define IP6_FRAGH 8 #define ICMP6_H 8 -/* We want a random function that returns 0 to 0x7fff */ -#if ( RAND_MAX != 2147483647 ) /* expect signed long */ -#error Random IP generation broken: unexpected RAND_MAX. -#endif - #define RAND8 ((u_int8_t)(rand() & 0xff)) #define RAND16 ((u_int16_t)(rand() & 0xffff)) #define RAND32 ((u_int32_t)((RAND16 << 16) + RAND16))