[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch cfengine-2.0.7p1
From: |
Dave Love |
Subject: |
Re: Patch cfengine-2.0.7p1 |
Date: |
Thu, 22 May 2003 17:54:01 +0100 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (gnu/linux) |
Mark Burgess <Mark.Burgess@iu.hio.no> writes:
> On 22 May, Fredrik Jagenheim wrote:
>> On Wed, May 21, 2003 at 04:17:51PM +0200, Mark.Burgess@iu.hio.no wrote:
>>>
>>> Ah - right, I have to actually add it to the distlist! Thanks,
>>> try p2 now in a minute
>>
>> p2 fails when it tries to compile getloadavg.c on SunOS_5.6.
>>
>> Adding '#define NLIST_STRUCT 1' to src/conf.h fixes this problem, but
>> I don't know enough about autoconf and friends to fix it 'properly'.
I forgot that the autoconf testing is currently somewhat inconsistent
with the getloadavg implementation. This should do the trick. I
don't have a sunos2.6 system to try it on.
*** pub/getloadavg.c~ Wed May 21 15:26:33 2003
--- pub/getloadavg.c Thu May 22 15:29:09 2003
***************
*** 76,81 ****
--- 76,85 ----
#include "../src/conf.h"
+ #ifdef HAVE_NLIST_H /* What autoconf defines. */
+ # undef NLIST_STRUCT
+ # define NLIST_STRUCT
+ #endif
#include <sys/types.h>