1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-01 03:36:26 -04:00

Don't include <sys/param.h> in util/math for MAX/MIN

<sys/param.h> includes <linux/param.h>, which includes <asm/param.h>, which
includes <asm-i486/param.h>, which includes <linux/config.h>, which
includes <linux/autoconf.h>, which includes <asm-i486/autoconf.h>, which
undefines CONFIG_IPV6.
This commit is contained in:
Kalle Olavi Niemitalo 2006-01-09 02:09:59 +01:00 committed by Jonas Fonseca
parent 5339525f1d
commit 7c80c67759

View File

@ -10,10 +10,6 @@
* Ie. MIN(a+b, c+d) will do 3 additions...
* Please prefer to use int_min() and int_max() if possible. */
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h> /* MIN/MAX may be defined in this header. */
#endif
/* FreeBSD needs this. */
#ifdef MIN
#undef MIN