diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-08-24 15:04:46 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-08-24 15:04:46 +0400 |
commit | ba1ff6e94604b5a20371c68713034cc678c128bb (patch) | |
tree | e22d43fbb0cc77c221d99004db27924daf8259a2 | |
parent | a79f8a5655e53d4a20200ac143080ee88f841448 (diff) |
fix Linux "uname -r" version matching
-rw-r--r-- | auto/os/linux | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/auto/os/linux b/auto/os/linux index 0bd04880d..ed296ce90 100644 --- a/auto/os/linux +++ b/auto/os/linux @@ -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} |