From 74735c5ebff15db8891808068fe8569d8ccde9e7 Mon Sep 17 00:00:00 2001 From: Colin Harrison Date: Sat, 18 Feb 2012 20:37:19 +0000 Subject: [PATCH] hw/xwin: fmemopen is available on cygwin but not MinGW This is a follow-up to commit 0659437f5ec0e3f646373394f5f9c5461e2170f3. Signed-off-by: Colin Harrison Reviewed-by: Jon TURNEY Reviewed-by: Yaakov Selkowitz --- hw/xwin/winprefs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/xwin/winprefs.c b/hw/xwin/winprefs.c index dbc5b5228..6cbd7ad80 100644 --- a/hw/xwin/winprefs.c +++ b/hw/xwin/winprefs.c @@ -645,6 +645,7 @@ winPrefsLoadPreferences(char *path) if (path) prefFile = fopen(path, "r"); +#ifdef __CYGWIN__ else { char defaultPrefs[] = "MENU rmenu {\n" @@ -656,6 +657,7 @@ winPrefsLoadPreferences(char *path) path = "built-in default"; prefFile = fmemopen(defaultPrefs, strlen(defaultPrefs), "r"); } +#endif if (!prefFile) { ErrorF("LoadPreferences: %s not found\n", path);