mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
fix Linux "uname -r" version matching
This commit is contained in:
parent
a79f8a5655
commit
ba1ff6e946
@ -18,7 +18,7 @@ CC_AUX_FLAGS="$cc_aux_flags -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64"
|
||||
# Linux kernel version
|
||||
|
||||
version=$((`uname -r \
|
||||
| sed 's/^\([^.]*\)\.\([^.]*\)\.\([^.-]*\).*/\1*256*256+\2*256+\3/'`))
|
||||
| sed 's/^\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1*256*256+\2*256+\3/'`))
|
||||
|
||||
version=${version:-0}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user