ENOMEDIUM OS X patch
OS X does not include ENOMEDIUM on the error list (I think that the
same is true for Solaris).
This patch solves the problem.
vl.h 28 Aug 2006 15:44:08 -0000 renamed from vl.h 19 Aug 2006 12:37:52 -0000 1.144 +4 -0
@@ -84,6 +84,10 @@ #endif /* !defined(QEMU_TOOL) */ +#ifdef CONFIG_COCOA +#define ENOMEDIUM 4097 +#endif + #ifndef glue #define xglue(x, y) x ## y #define glue(x, y) xglue(x, y)
--
All men dream, but only that dream during the daytime are the dangerous.
- T. E. Lawrence
Quoted 2 lines · Jose Renau
OS X does not include ENOMEDIUM on the error list (I think that the same is true for Solaris). This patch solves the problem.
so this would be more appropriate:
+#ifndef ENOMEDIUM
+#define ENOMEDIUM 4097
+#endif
than:
vl.h 28 Aug 2006 15:44:08 -0000 line 89
Quoted 3 lines
vl.h 28 Aug 2006 15:44:08 -0000 renamed from vl.h 19 Aug 2006 12:37:52 -0000 1.144 +3
-0+#ifdef CONFIG_COCOA +#define ENOMEDIUM 4097 +#endif
Pierre.
Yes you are correct Solaris does not define this
either, and I doubt other *nix systems do.
Can this just be changed to
#ifndef ENOMEDIUM
#define ENOMEDIUM blahblah
#endif
or somesuch?
- Eric
Quoted 28 lines · --- Jose Renau
OS X does not include ENOMEDIUM on the error list
(I think that the
same is true for Solaris).
This patch solves the problem.---
vl.h19 Aug 2006 12:37:52 -0000
1.144
+++vl.h28 Aug 2006 15:44:08 -0000vl.h 28 Aug 2006 15:44:08 -0000 renamed from vl.h 19 Aug 2006 12:37:52 -0000 1.144 +4
-1@@ -84,6 +84,10 @@ #endif /* !defined(QEMU_TOOL) */ +#ifdef CONFIG_COCOA +#define ENOMEDIUM 4097 +#endif + #ifndef glue #define xglue(x, y) x ## y #define glue(x, y) xglue(x, y) --All men dream, but only that dream during the
daytime are the dangerous.
- T. E. Lawrence
Quoted 5 lines
_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
In message: <[email protected]>
Eric Lowe <[email protected]> writes:
: Yes you are correct Solaris does not define this
: either, and I doubt other *nix systems do.
:
: Can this just be changed to
:
: #ifndef ENOMEDIUM
: #define ENOMEDIUM blahblah
: #endif
:
: or somesuch?
None of the BSDs define it either. At least not FreeBSD nor OpenBSD. It isn't suprising then that OS X doesn't define it. It wasn't in BSD 4.4-lite.
Warner