Make fails on updated Fedora Core 4 system. Possibly
due to GCC 4 error checks (?). I dunno - I'm not a
coder, just hacked this to work for me.
[root@Tux hping2-beta54]# make
gcc -c -O2 -Wall -g -DLIMITWHENSUID -DHAVE_PROC getusec.c
getusec.c: In function 'get_usec':
getusec.c:17: error: 'NULL' undeclared (first use in
this function)
getusec.c:17: error: (Each undeclared identifier is
reported only once
getusec.c:17: error: for each function it appears in.)
make: *** [getusec.o] Error 1
Get around this error by adding into getusec.c
#include <stdlib.h>
after existing include - thusly:
#include <sys/time.h>
#include <stdlib.h>
long get_usec(void)
{
struct timeval tmptv;
gettimeofday(&tmptv, NULL);
return tmptv.tv_usec;
}
Save and re-run make. Worked for me.