diff -N -ru -x '*.pyc' src/Python-3.6.0b1/Modules/_ctypes/_ctypes.c python-3.6.0.177/Modules/_ctypes/_ctypes.c --- src/Python-3.6.0b1/Modules/_ctypes/_ctypes.c 2016-09-12 16:22:33 +0000 +++ python-3.6.0.177/Modules/_ctypes/_ctypes.c 2016-10-04 19:50:16 +0000 @@ -5497,6 +5497,12 @@ PyModule_AddObject(m, "RTLD_LOCAL", PyLong_FromLong(RTLD_LOCAL)); PyModule_AddObject(m, "RTLD_GLOBAL", PyLong_FromLong(RTLD_GLOBAL)); +#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) {