[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems building lib/getloadavg.c on Solaris 2.5.1
From: |
Albert Chin |
Subject: |
Re: Problems building lib/getloadavg.c on Solaris 2.5.1 |
Date: |
Wed, 3 Nov 2004 07:48:08 -0600 |
User-agent: |
Mutt/1.5.6i |
On Wed, Nov 03, 2004 at 01:29:13AM -0800, Paul Eggert wrote:
> Albert Chin <address@hidden> writes:
>
> > Solaris 2.5.1 has uint32_t in <synch.h>.
>
> Also in <pthread.h> and <semaphore.h>.
>
> > So, how do we solve this? Do I augment m4/uint32_t.m4 to include
> > <synch.h> if available and then add:
> > #ifdef HAVE_SYNC_H
> > #include <sync.h>
> > #endif
> > wherever uint32_t is needed?
>
> How about defining _UINT32_T if we declare uint32_t? It's a bit of a
> hack, but it will pacify Solaris 2.5.1.
Thanks. This works. I've posted an updated patch to bug-gnulib.
--
albert chin (address@hidden)