mirror of
https://github.com/nginx/nginx.git
synced 2026-06-09 00:42:38 -04:00
fix Linux "uname -r" version matching
This commit is contained in:
parent
a79f8a5655
commit
ba1ff6e946
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue