Skip to contentSkip to conversation

patches for darwin?

Qemu-devel Tom Musgrove 1 participant 1 message Nov 14, 2003

lore
Share & tools
lore
#0 lore raw

How do you want patches made for darwin?

Ie Darwin places many of the include files in different paths than are used in the current files,

instead of <getopt.h> use <usr/include/getopt.h> instead of <linux/if.h> use <net/if.h> instead of <linux/if_tun.h> use <net/if_tun.h> instead of <malloc.h> use <sys/malloc.h> instead of <fcntl.h> use <sys/fcntl.h>

So, do you want something like

if test "$targetos" = "Darwin" ; then
echo "#undef HAVE_BYTESWAP_H" >> $config_h echo "#define DARWIN_SYSTEM = 1" >> $config_h
...

in configure and then in the file using the header

#ifdef DARWIN_SYSTEM
#include <sys/malloc.h>
#else
#include <malloc.h>
#endif

Or is there some other way that would be preferable?

Thanks,

Tom M.

_________________________________________________________________
Is your computer infected with a virus? Find out with a FREE computer virus scan from McAfee. Take the FreeScan now! http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963