diff --git a/include/wx/defs.h b/include/wx/defs.h index 05cc3427cb..0c9d550056 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -2246,7 +2246,7 @@ enum wxUpdateUI # define wxALL_FILES gettext_noop("All files (*)|*") #endif -#if defined(__CYGWIN__) +#if defined(__CYGWIN__) && defined(__WXMSW__) # if wxUSE_STL || defined(wxUSE_STD_STRING) //NASTY HACK because the gethostname in sys/unistd.h which the gnu stl includes //and wx builds with by default clash with each other (windows version