Author Michael.Felt
Recipients Michael.Felt, jaketesler, pitrou, vstinner
Date 2019-05-22.10:22:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1558520546.95.0.705976891307.issue36084@roundup.psfhosted.org>
In-reply-to
Content
I do not know if it is that much mode complex. Unless I missed something it seems to be that this bit - needs three lines added after the FREEBSD block - per below: 
All the other "assurances" are just things that need to be assured. Adding a -D_XXX to CFLAGS is not all that complex either. Perhaps getting the need for the flag documented is 'complex'.

#ifdef PY_HAVE_THREAD_NATIVE_ID
unsigned long
PyThread_get_thread_native_id(void)
{
    if (!initialized)
        PyThread_init_thread();
#ifdef __APPLE__
    uint64_t native_id;
    (void) pthread_threadid_np(NULL, &native_id);
#elif defined(__linux__)
    pid_t native_id;
    native_id = syscall(SYS_gettid);
#elif defined(__FreeBSD__)
    int native_id;
    native_id = pthread_getthreadid_np();
#elif defined(_AIX)
    pthread_t native_id;
    native_id = pthread_self()

****
More may be needed, but I expect it the include file mentioned is already included - but perhaps without the assurance that AIX says it wants/needs for real thread safe builds. And fixing that is just a bonus!
History
Date User Action Args
2019-05-22 10:22:26Michael.Feltsetrecipients: + Michael.Felt, pitrou, vstinner, jaketesler
2019-05-22 10:22:26Michael.Feltsetmessageid: <1558520546.95.0.705976891307.issue36084@roundup.psfhosted.org>
2019-05-22 10:22:26Michael.Feltlinkissue36084 messages
2019-05-22 10:22:26Michael.Feltcreate