qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] ENOMEDIUM OS X patch
@ 2006-08-28 15:45 Jose Renau
  2006-08-28 15:54 ` Pierre d'Herbemont
  2006-08-28 19:34 ` Eric Lowe
  0 siblings, 2 replies; 4+ messages in thread
From: Jose Renau @ 2006-08-28 15:45 UTC (permalink / raw)
  To: qemu-devel


  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        19 Aug 2006 12:37:52 -0000      1.144
+++ vl.h        28 Aug 2006 15:44:08 -0000
@@ -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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] ENOMEDIUM OS X patch
  2006-08-28 15:45 [Qemu-devel] ENOMEDIUM OS X patch Jose Renau
@ 2006-08-28 15:54 ` Pierre d'Herbemont
  2006-08-28 19:34 ` Eric Lowe
  1 sibling, 0 replies; 4+ messages in thread
From: Pierre d'Herbemont @ 2006-08-28 15:54 UTC (permalink / raw)
  To: qemu-devel


On Aug 28, 2006, at 5:45 PM, Jose Renau wrote:

> 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:

> +#ifdef CONFIG_COCOA
> +#define ENOMEDIUM 4097
> +#endif

Pierre.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] ENOMEDIUM OS X patch
  2006-08-28 15:45 [Qemu-devel] ENOMEDIUM OS X patch Jose Renau
  2006-08-28 15:54 ` Pierre d'Herbemont
@ 2006-08-28 19:34 ` Eric Lowe
  2006-08-28 19:47   ` M. Warner Losh
  1 sibling, 1 reply; 4+ messages in thread
From: Eric Lowe @ 2006-08-28 19:34 UTC (permalink / raw)
  To: qemu-devel

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

--- Jose Renau <renau@soe.ucsc.edu> wrote:

> 
>   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        19 Aug 2006 12:37:52 -0000     
> 1.144
> +++ vl.h        28 Aug 2006 15:44:08 -0000
> @@ -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
> 
> 
> 
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> 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 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] ENOMEDIUM OS X patch
  2006-08-28 19:34 ` Eric Lowe
@ 2006-08-28 19:47   ` M. Warner Losh
  0 siblings, 0 replies; 4+ messages in thread
From: M. Warner Losh @ 2006-08-28 19:47 UTC (permalink / raw)
  To: elowe8, qemu-devel

In message: <20060828193421.14111.qmail@web30911.mail.mud.yahoo.com>
            Eric Lowe <elowe8@yahoo.com> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-08-28 19:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-28 15:45 [Qemu-devel] ENOMEDIUM OS X patch Jose Renau
2006-08-28 15:54 ` Pierre d'Herbemont
2006-08-28 19:34 ` Eric Lowe
2006-08-28 19:47   ` M. Warner Losh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).