#14761: Cannot build proctools on Leopard ---------------------------------+------------------------------------------ Reporter: akira@macports.org | Owner: akira@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: leopard proctools kvm ---------------------------------+------------------------------------------ Comment (by openspecies@gmail.com): Replying to [comment:8 simmel@soy.se]:
Replying to [comment:7 openspecies@gmail.com]:
Replying to [comment:6 simmel@soy.se]:
Try that akira. It works for me(TM).
Hi Akira, patch the include in proctools.h (kvm.h remove it) and
#define USE_SYSCTL
a nicer way is:
#ifdef __APPLE__ #include AvailabilityMacros.h
Cheers!
Cool, much better patch than mine. To take it one step further, make -lkvm depend on USE_KVM too, but maybe that's not possible/very hard?
Anyway, good work!
yep I think that's possible, I only digg few minutes into proctools src, there are also some deprecated warnings from bsd.make, it's only a quick patch, anyway, it's perfectible using APPLE macro and the OS Version, no matter, :) THX -- Ticket URL: <http://trac.macports.org/ticket/14761#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS