[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cfengine 2.1.1 on Mac OS X 10.3.2
From: |
Paul M. Lambert |
Subject: |
cfengine 2.1.1 on Mac OS X 10.3.2 |
Date: |
Wed, 28 Jan 2004 15:00:34 -0800 |
cfengine 2.1.1 doesn't build on Mac OS X 10.3.2. Is this a known
problem?
Specifically, it appears that in cf.defs.h, there is an ifdef
specifically for Darwin:
#ifdef HAVE_MALLOC_H
#ifdef DARWIN
#include <sys/malloc.h>
#include <sys/paths.h>
#else
#ifndef OPENBSD
#ifdef __FreeBSD__
#include <stdlib.h>
#else
#include <malloc.h>
#endif
#endif
#endif
#endif
However, Mac OS X 10.3.2 doesn't have /usr/include/malloc.h, and
therefore the above ifdef for including sys/malloc.h and sys/paths.h is
never seen.
So the compilation fails.
I don't know the other OS's so well. It should be easy to reorder it
as such:
#ifdef DARWIN
#include <sys/malloc.h>
#include <sys/paths.h>
#endif
#ifdef HAVE_MALLOC_H
#ifndef OPENBSD
#ifdef __FreeBSD__
#include <stdlib.h>
#else
#include <malloc.h>
#endif
#endif
#endif
Would that break anything? I'm a perl progammer and not a C
programmer, though I can read enough C to get into trouble. :-) Any
comments would be welcome!
--plambert
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- cfengine 2.1.1 on Mac OS X 10.3.2,
Paul M. Lambert <=