From 0cea408abba991ad8332fe90e5136ae53439dce4 Mon Sep 17 00:00:00 2001 From: "blizzard%redhat.com" Date: Sun, 30 May 1999 16:58:31 +0000 Subject: [PATCH] Apply build patches from Tim Rowley to get working with native solaris compiler --- gfx/src/xlib/xlibrgb.c | 6 +++--- widget/src/xlib/nsAppShell.cpp | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gfx/src/xlib/xlibrgb.c b/gfx/src/xlib/xlibrgb.c index 832fce717c7..d63e3c1e5ee 100644 --- a/gfx/src/xlib/xlibrgb.c +++ b/gfx/src/xlib/xlibrgb.c @@ -180,8 +180,8 @@ xlib_get_prec_from_mask(unsigned long val) { unsigned long retval = 0; int cur_bit = 0; - // walk through the number, incrementing the value if - // the bit in question is set. + /* walk through the number, incrementing the value if + the bit in question is set. */ while (cur_bit < (sizeof(unsigned long) * 8)) { if ((val >> cur_bit) & 0x1) { retval++; @@ -195,7 +195,7 @@ static unsigned long xlib_get_shift_from_mask(unsigned long val) { unsigned long cur_bit = 0; - // walk through the number, looking for the first 1 + /* walk through the number, looking for the first 1 */ while (cur_bit < (sizeof(unsigned long) * 8)) { if ((val >> cur_bit) & 0x1) { return cur_bit; diff --git a/widget/src/xlib/nsAppShell.cpp b/widget/src/xlib/nsAppShell.cpp index 47c8952093f..65b866bfc70 100644 --- a/widget/src/xlib/nsAppShell.cpp +++ b/widget/src/xlib/nsAppShell.cpp @@ -16,6 +16,7 @@ * Reserved. */ +#include #include #include #include "nsWidget.h"