qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH 03/32] change definition of FILE for linux


From: Anthony Liguori
Subject: [Qemu-devel] Re: [PATCH 03/32] change definition of FILE for linux
Date: Thu, 23 Oct 2008 08:52:52 -0500
User-agent: Thunderbird 2.0.0.17 (X11/20080925)

Glauber Costa wrote:
use _IO_FILE, as it seems to be the case.

Why?  What is this fixing?

It seems to work fine today and I don't see how this is related to the series.

Regards,

Anthony Liguori

Signed-off-by: Glauber Costa <address@hidden>
---
 dyngen-exec.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dyngen-exec.h b/dyngen-exec.h
index 9260b6f..826ff46 100644
--- a/dyngen-exec.h
+++ b/dyngen-exec.h
@@ -27,6 +27,10 @@
 #define _FILEDEFED
 #endif

+#ifdef __linux__
+#define __FILE_defined
+#endif
+
 /* NOTE: standard headers should be used with special care at this
    point because host CPU registers are used as global variables. Some
    host headers do not allow that. */
@@ -84,6 +88,8 @@ typedef void * host_reg_t;

 #ifdef _BSD
 typedef struct __sFILE FILE;
+#elif defined(__linux__)
+typedef struct _IO_FILE FILE;
 #else
 typedef struct FILE FILE;
 #endif





reply via email to

[Prev in Thread] Current Thread [Next in Thread]