pop3check on FreeBSD
Brought to you by:
squidly
I compiled pop3check on FreeBSD
Patches needed:
in pop3check.h:
<snip>
#include <stdio.h>
#ifdef __FreeBSD__
/* on Freebsd, types.h must be before socket.h
PPGelderblom 27122001*/
#include <sys/types.h>
#include <sys/socket.h>
#else
#include <sys/socket.h>
#include <sys/types.h>
#endif
#include <netinet/in.h>
#include <netdb.h>
</snip>
and: if you use standard make in stead of gmake,
the following three lines must be commented out in the
Makefile:
ifeq ($(shell uname -s),SunOS)
LIBS = -lsocket -lnsl
endif
since make doesn't know the ifeq directive.
updated version of pop3check.h