--- src/Python-3.6.0a4/Modules/_ctypes/_ctypes.c 2016-08-15 21:37:46 +0000 +++ python-3.6.0.164/Modules/_ctypes/_ctypes.c 2016-08-23 18:07:31 +0000 @@ -5501,6 +5501,20 @@ PyModule_AddObject(m, "RTLD_LOCAL", PyLong_FromLong(RTLD_LOCAL)); PyModule_AddObject(m, "RTLD_GLOBAL", PyLong_FromLong(RTLD_GLOBAL)); +#ifdef RTLD_NOW +/* + * this value is set silently in callproc.c + * maybe this should be added in the interface as well? + * otherwise it is an undocumented bit + */ + PyModule_AddObject(m, "RTLD_NOW", PyLong_FromLong(RTLD_NOW)); +#endif +#ifdef RTLD_MEMBER +/* + * to add support for AIX shared_members stored in .a archives + */ + PyModule_AddObject(m, "RTLD_MEMBER", PyLong_FromLong(RTLD_MEMBER)); +#endif PyExc_ArgError = PyErr_NewException("ctypes.ArgumentError", NULL, NULL); if (PyExc_ArgError) {