mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05: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:
parent
5339525f1d
commit
7c80c67759
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user