[MacPorts] #21118: ESHUTDOWN missing in Python 2.4.6 (SL)

MacPorts noreply at macports.org
Tue Sep 15 14:50:14 PDT 2009


#21118: ESHUTDOWN missing in Python 2.4.6 (SL)
-----------------------------------------------+----------------------------
 Reporter:  charlie.clark@…                    |       Owner:  macports-tickets@…                   
     Type:  defect                             |      Status:  new                                  
 Priority:  Normal                             |   Milestone:                                       
Component:  ports                              |     Version:  1.8.0                                
 Keywords:                                     |        Port:  python24                             
-----------------------------------------------+----------------------------

Comment(by charlie.clark@…):

 Going on the Plone patch it looks like the Posix compatability is the
 problem:

 http://svn.plone.org/svn/collective/buildout/python/src/python-2.4-darwin-10.6.patch:

 +
 +#if (defined __APPLE__) && (!defined _POSIX_C_SOURCE)
 +#define TEMPORARILY_DEFINING__POSIX_C_SOURCE    /* so we can #undef it
 later */
 +#define _POSIX_C_SOURCE   /* avoid deprecated struct ostat in sys/stat.h
 */
 +#endif
 +
  #include <sys/stat.h>
  #elif defined(HAVE_STAT_H)
  #include <stat.h>
  #endif

 +/* Mac OS X: undefine _POSIX_C_SOURCE if it wasn't defined before */
 +#ifdef TEMPORARILY_DEFINING__POSIX_C_SOURCE
 +#undef _POSIX_C_SOURCE
 +#undef TEMPORARILY_DEFINING__POSIX_C_SOURCE
 +#endif

-- 
Ticket URL: <http://trac.macports.org/ticket/21118#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list