All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [Patch] ENOMEDIUM fix for Darwin and *BSD
@ 2007-01-26 14:53 Pierre d'Herbemont
  2007-01-26 15:39 ` Thiemo Seufer
  2007-01-26 15:57 ` Joe Batt
  0 siblings, 2 replies; 4+ messages in thread
From: Pierre d'Herbemont @ 2007-01-26 14:53 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 197 bytes --]

Hi,

This fix,

/qemu/hw/ide.c: In function `ide_atapi_io_error':
/qemu/hw/ide.c:972: error: `ENOMEDIUM' undeclared (first use in this  
function)

on Darwin and certainly on other *BSDs

Pierre.


[-- Attachment #2: enomedium_darwin.diff.txt --]
[-- Type: text/plain, Size: 400 bytes --]

Index: vl.h
===================================================================
RCS file: /sources/qemu/qemu/vl.h,v
retrieving revision 1.177
diff -u -r1.177 vl.h
--- vl.h	24 Jan 2007 21:40:21 -0000	1.177
+++ vl.h	26 Jan 2007 14:51:15 -0000
@@ -44,6 +44,9 @@
 #ifndef O_BINARY
 #define O_BINARY 0
 #endif
+#ifndef ENOMEDIUM
+#define ENOMEDIUM ENODEV
+#endif
 
 #ifdef __sun__
 #define ENOMEDIUM 4097

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

end of thread, other threads:[~2007-01-26 16:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-26 14:53 [Qemu-devel] [Patch] ENOMEDIUM fix for Darwin and *BSD Pierre d'Herbemont
2007-01-26 15:39 ` Thiemo Seufer
2007-01-26 16:40   ` Pierre d'Herbemont
2007-01-26 15:57 ` Joe Batt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.