This error happened when I was compiling dansguardian 22.214.171.124 with Linux netfilter support.
In file included from ConnectionHandler.cpp:48:
/usr/include/linux/netfilter_ipv4.h:53: error: ‘INT_MIN’ was not declared in this scope
/usr/include/linux/netfilter_ipv4.h:64: error: ‘INT_MAX’ was not declared in this scope
/usr/include/linux/netfilter_ipv4.h:65: error: ‘INT_MAX’ was not declared in this scope
make: *** [dansguardian-ConnectionHandler.o] Error 1
To solve it, you have to edit netfilter_ipv4.h and type #include <limits.h> just below or after other #include lines.