diff options
| author | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2011-06-20 13:41:23 +0000 |
|---|---|---|
| committer | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2011-06-20 13:41:23 +0000 |
| commit | f028e0ea8c3fdd0378927544154287f44495f36c (patch) | |
| tree | 54993762afa7ea4c3d2412c5b3a46d12c7501394 /src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp | |
| parent | 52322db54012fef99fa111cfcfeb15b32f8dd9eb (diff) | |
| download | VirtualBox-svn-f028e0ea8c3fdd0378927544154287f44495f36c.tar.gz | |
SUPLib-linux: new version number scheme starting with Linux 3.0
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@37556 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp')
| -rw-r--r-- | src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp b/src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp index c5a72c00826..18ac03dbe15 100644 --- a/src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp +++ b/src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp @@ -266,11 +266,16 @@ int suplibOsQueryVTxSupported(void) rc = RTStrToUInt32Ex(szBuf, &pszNext, 10, &uA); if ( RT_SUCCESS(rc) - && *pszNext == '.') + && *pszNext == '.') { + /* + * new version number scheme starting with Linux 3.0 + */ + if (uA >= 3) + return VINF_SUCCESS; rc = RTStrToUInt32Ex(pszNext+1, &pszNext, 10, &uB); if ( RT_SUCCESS(rc) - && *pszNext == '.') + && *pszNext == '.') { rc = RTStrToUInt32Ex(pszNext+1, &pszNext, 10, &uC); if (RT_SUCCESS(rc)) |
