firefox-03-strcasestr.patch revision 7033
The 'uname' part is necessary because the uname() function returns a
non-negative value.
diff --git a/widget/GfxInfoX11.cpp b/widget/GfxInfoX11.cpp
--- a/widget/GfxInfoX11.cpp
+++ b/widget/GfxInfoX11.cpp
@@ -135,7 +136,7 @@
// only useful for Linux kernel version check for FGLRX driver.
// assumes X client == X server, which is sad.
struct utsname unameobj;
- if (!uname(&unameobj))
+ if (uname(&unameobj) >= 0)
{
mOS.Assign(unameobj.sysname);
mOSRelease.Assign(unameobj.release);