mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -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...
|
* Ie. MIN(a+b, c+d) will do 3 additions...
|
||||||
* Please prefer to use int_min() and int_max() if possible. */
|
* 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. */
|
/* FreeBSD needs this. */
|
||||||
#ifdef MIN
|
#ifdef MIN
|
||||||
#undef MIN
|
#undef MIN
|
||||||
|
Loading…
x
Reference in New Issue
Block a user