1 diff --git a/block.c b/block.c
2 index b68a8da..6ed24ad 100644
15 #define SECTOR_SIZE (1 << SECTOR_BITS)
16 diff --git a/configure b/configure
17 index 6164241..3e206b2 100755
20 @@ -228,6 +228,11 @@ if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then
32 @@ -1317,6 +1322,10 @@ if test "$darwin" = "yes" ; then
33 echo "CONFIG_DARWIN=yes" >> $config_mak
34 echo "#define CONFIG_DARWIN 1" >> $config_h
36 +if test "$dragonfly" = "yes" ; then
37 + echo "CONFIG_DRAGONFLY=yes" >> $config_mak
38 + echo "#define CONFIG_DRAGONFLY 1" >> $config_h
41 if test "$aix" = "yes" ; then
42 echo "CONFIG_AIX=yes" >> $config_mak
43 diff --git a/cpu-exec.c b/cpu-exec.c
44 index 7607e24..deb845d 100644
47 @@ -1156,6 +1156,12 @@ static inline int handle_cpu_signal(unsigned long pc, unsigned long address,
48 # define EIP_sig(context) (*((unsigned long*)&(context)->uc_mcontext->ss.eip))
49 # define TRAP_sig(context) ((context)->uc_mcontext->es.trapno)
50 # define ERROR_sig(context) ((context)->uc_mcontext->es.err)
51 +#elif defined (__DragonFly__)
52 +# include <ucontext.h>
54 +# define EIP_sig(context) (*((unsigned long*)&(context)->uc_mcontext.mc_eip))
55 +# define TRAP_sig(context) ((context)->uc_mcontext.mc_trapno)
56 +# define ERROR_sig(context) ((context)->uc_mcontext.mc_err)
58 # define EIP_sig(context) ((context)->uc_mcontext.gregs[REG_EIP])
59 # define TRAP_sig(context) ((context)->uc_mcontext.gregs[REG_TRAPNO])
60 @@ -1166,7 +1172,7 @@ int cpu_signal_handler(int host_signum, void *pinfo,
63 siginfo_t *info = pinfo;
64 - struct ucontext *uc = puc;
65 + ucontext_t *uc = puc;
69 diff --git a/texi2pod.pl b/texi2pod.pl
70 index 5d28a05..abca509 100755
75 +#! /usr/bin/env perl -w
77 # Copyright (C) 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
79 diff --git a/usb-bsd.c b/usb-bsd.c
80 index fa4093c..60e78d4 100644
86 #include <sys/ioctl.h>
88 +#include <bus/usb/usb.h>
90 #include <dev/usb/usb.h>
94 /* This value has maximum potential at 16.
95 --- a/exec-all.h~ 2009-08-17 01:32:59 +0200
96 +++ a/exec-all.h 2009-08-17 01:13:49 +0200
98 typedef struct TranslationBlock TranslationBlock;
100 /* XXX: make safe guess about sizes */
101 -#define MAX_OP_PER_INSTR 64
102 +#define MAX_OP_PER_INSTR 80
103 /* A Call op needs up to 6 + 2N parameters (N = number of arguments). */
104 #define MAX_OPC_PARAM 10
105 #define OPC_BUF_SIZE 512