The following patch includes "exec-all.h" in block-raw.c when QEMU_IMG is not defined to avoid the following implicit declaration :
qemu/block-raw.c: In function `aio_signal_handler': qemu/block-raw.c:253: warning: implicit declaration of function `kqemu_cpu_interrupt' Carlo -- Index: block-raw.c =================================================================== RCS file: /sources/qemu/qemu/block-raw.c,v retrieving revision 1.26 diff -u -r1.26 block-raw.c --- block-raw.c 11 Nov 2007 02:51:16 -0000 1.26 +++ block-raw.c 11 Nov 2007 08:10:05 -0000 @@ -57,11 +57,13 @@ #include <sys/disk.h> #endif -//#define DEBUG_FLOPPY +#if !defined(QEMU_IMG) +#include "exec-all.h" +#endif +//#define DEBUG_FLOPPY //#define DEBUG_BLOCK -#if defined(DEBUG_BLOCK) && !defined(QEMU_IMG) -#include "exec-all.h" +#if defined(DEBUG_BLOCK) #define DEBUG_BLOCK_PRINT(formatCstr, args...) do { if (loglevel != 0) \ { fprintf(logfile, formatCstr, ##args); fflush(logfile); } } while (0) #else