@@ -1024,7 +1024,7 @@ typedef struct {
10241024 PyObject * TerminalSizeType ;
10251025 PyObject * TimesResultType ;
10261026 PyObject * UnameResultType ;
1027- #if defined(HAVE_WAITID ) && !defined( __APPLE__ )
1027+ #if defined(HAVE_WAITID )
10281028 PyObject * WaitidResultType ;
10291029#endif
10301030#if defined(HAVE_WAIT3 ) || defined(HAVE_WAIT4 )
@@ -2292,7 +2292,7 @@ static PyStructSequence_Desc statvfs_result_desc = {
22922292 10
22932293};
22942294
2295- #if defined(HAVE_WAITID ) && !defined( __APPLE__ )
2295+ #if defined(HAVE_WAITID )
22962296PyDoc_STRVAR (waitid_result__doc__ ,
22972297"waitid_result: Result from waitid.\n\n\
22982298This object may be accessed either as a tuple of\n\
@@ -2367,7 +2367,7 @@ _posix_clear(PyObject *module)
23672367 Py_CLEAR (state -> TerminalSizeType );
23682368 Py_CLEAR (state -> TimesResultType );
23692369 Py_CLEAR (state -> UnameResultType );
2370- #if defined(HAVE_WAITID ) && !defined( __APPLE__ )
2370+ #if defined(HAVE_WAITID )
23712371 Py_CLEAR (state -> WaitidResultType );
23722372#endif
23732373#if defined(HAVE_WAIT3 ) || defined(HAVE_WAIT4 )
@@ -2392,7 +2392,7 @@ _posix_traverse(PyObject *module, visitproc visit, void *arg)
23922392 Py_VISIT (state -> TerminalSizeType );
23932393 Py_VISIT (state -> TimesResultType );
23942394 Py_VISIT (state -> UnameResultType );
2395- #if defined(HAVE_WAITID ) && !defined( __APPLE__ )
2395+ #if defined(HAVE_WAITID )
23962396 Py_VISIT (state -> WaitidResultType );
23972397#endif
23982398#if defined(HAVE_WAIT3 ) || defined(HAVE_WAIT4 )
@@ -9518,7 +9518,7 @@ os_wait4_impl(PyObject *module, pid_t pid, int options)
95189518#endif /* HAVE_WAIT4 */
95199519
95209520
9521- #if defined(HAVE_WAITID ) && !defined( __APPLE__ )
9521+ #if defined(HAVE_WAITID )
95229522/*[clinic input]
95239523os.waitid
95249524
@@ -9575,7 +9575,7 @@ os_waitid_impl(PyObject *module, idtype_t idtype, id_t id, int options)
95759575
95769576 return result ;
95779577}
9578- #endif /* defined(HAVE_WAITID) && !defined(__APPLE__) */
9578+ #endif /* defined(HAVE_WAITID) */
95799579
95809580
95819581#if defined(HAVE_WAITPID )
@@ -17309,7 +17309,7 @@ posixmodule_exec(PyObject *m)
1730917309 return -1 ;
1731017310 }
1731117311
17312- #if defined(HAVE_WAITID ) && !defined( __APPLE__ )
17312+ #if defined(HAVE_WAITID )
1731317313 waitid_result_desc .name = MODNAME ".waitid_result" ;
1731417314 state -> WaitidResultType = (PyObject * )PyStructSequence_NewType (& waitid_result_desc );
1731517315 if (PyModule_AddObjectRef (m , "waitid_result" , state -> WaitidResultType ) < 0 ) {
0 commit comments