GNOME Bugzilla – Bug 537006
gstdio.c: X_OK is not defined in MSVC.
Last modified: 2008-06-07 04:13:03 UTC
Please describe the problem: X_OK is not defined in the headers of Microsoft's runtime library. If X_OK is not defined, we should define X_OK before calling waccess. Steps to reproduce: 1. compile gstdio.c by Visual C++. Actual results: Following message is displayed.(Visual C++) gstdio.c(88) : error C2065: 'X_OK' : undeclared identifier Expected results: Insert following codes before waccess. #ifndef X_OK # define X_OK 1 #endif /* not X_OK */ Does this happen every time? Revision 6961 Other information:
By an extraordinary coincidence I noticed this myself right now some minutes ago and committed a fix... 2008-06-07 Tor Lillqvist <tml@novell.com> * glib/gstdio.c (g_access): Define X_OK if not defined (MSVC).