mirror of
https://github.com/nginx/nginx.git
synced 2025-07-25 06:37:58 +08:00
r3040:
fix Linux "uname -r" version matching
This commit is contained in:
parent
6ace74566d
commit
bfa9302e89
@ -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