~ubuntu-branches/ubuntu/trusty/xulrunner/trusty

« back to all changes in this revision

Viewing changes to xpcom/base/nsSystemInfo.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Devid Antonio Filoni
  • Date: 2008-08-25 13:04:18 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20080825130418-ck1i2ms384tzb9m0
Tags: 1.8.1.16+nobinonly-0ubuntu1
* New upstream release (taken from upstream CVS), LP: #254618.
* Fix MFSA 2008-35, MFSA 2008-34, MFSA 2008-33, MFSA 2008-32, MFSA 2008-31,
  MFSA 2008-30, MFSA 2008-29, MFSA 2008-28, MFSA 2008-27, MFSA 2008-25,
  MFSA 2008-24, MFSA 2008-23, MFSA 2008-22, MFSA 2008-21, MFSA 2008-26 also
  known as CVE-2008-2933, CVE-2008-2785, CVE-2008-2811, CVE-2008-2810,
  CVE-2008-2809, CVE-2008-2808, CVE-2008-2807, CVE-2008-2806, CVE-2008-2805,
  CVE-2008-2803, CVE-2008-2802, CVE-2008-2801, CVE-2008-2800, CVE-2008-2798.
* Drop 89_bz419350_attachment_306066 patch, merged upstream.
* Bump Standards-Version to 3.8.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
#include "nsSystemInfo.h"
40
40
#include "prsystem.h"
41
41
#include "nsString.h"
 
42
#include "prprf.h"
 
43
 
 
44
#ifdef MOZ_WIDGET_GTK2
 
45
#include <gtk/gtk.h>
 
46
#endif
42
47
 
43
48
nsSystemInfo::nsSystemInfo()
44
49
{
74
79
      else
75
80
        NS_WARNING("PR_GetSystemInfo failed");
76
81
    }
 
82
 
 
83
#ifdef MOZ_WIDGET_GTK2
 
84
    // This must be done here because NSPR can only separate OS's when compiled, not libraries.
 
85
    char* gtkver = PR_smprintf("GTK %u.%u.%u", gtk_major_version, gtk_minor_version, gtk_micro_version);
 
86
    if (gtkver) {
 
87
      rv = SetPropertyAsACString(NS_ConvertASCIItoUTF16("secondaryLibrary"),
 
88
                                 nsDependentCString(gtkver));
 
89
      PR_smprintf_free(gtkver);
 
90
      NS_ENSURE_SUCCESS(rv, rv);
 
91
    }
 
92
#endif
77
93
   
78
94
    return NS_OK;
79
95
}