Apply build patches from Tim Rowley <tor@cs.brown.edu> to get working

with native solaris compiler
This commit is contained in:
blizzard%redhat.com 1999-05-30 16:58:31 +00:00
Родитель c3df95ba66
Коммит 0cea408abb
2 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -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;

Просмотреть файл

@ -16,6 +16,7 @@
* Reserved.
*/
#include <stdlib.h>
#include <sys/time.h>
#include <unistd.h>
#include "nsWidget.h"