blob: d148d16aaacc5fce7f073a2c408dd275aed4a01b [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001OpenWrt (modification):
2Fix cross compile errors by inserting an environment variable for the
3target. Use "uname" on host only if "UNAME" variable is empty.
4--- a/configure.ac
5+++ b/configure.ac
6@@ -812,7 +812,7 @@ if test x_$ub_test_python != x_no; then
7 fi
8 fi
9
10-if test "`uname`" = "NetBSD"; then
11+if test "${UNAME:-`uname`}" = "NetBSD"; then
12 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
13 AC_SUBST(NETBSD_LINTFLAGS)
14 fi