Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 831179
Collapse All | Expand All

(-)a/m4/ax_pthread.m4 (-1 / +1 lines)
Lines 219-225 for flag in $ax_pthread_flags; do Link Here
219
        # functions on Solaris that doesn't have a non-functional libc stub.
219
        # functions on Solaris that doesn't have a non-functional libc stub.
220
        # We try pthread_create on general principles.
220
        # We try pthread_create on general principles.
221
        AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>
221
        AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>
222
                        static void routine(void *a) { a = 0; }
222
                        static void routine(void *a) { if (a) return; }
223
                        static void *start_routine(void *a) { return a; }],
223
                        static void *start_routine(void *a) { return a; }],
224
                       [pthread_t th; pthread_attr_t attr;
224
                       [pthread_t th; pthread_attr_t attr;
225
                        pthread_create(&th, 0, start_routine, 0);
225
                        pthread_create(&th, 0, start_routine, 0);

Return to bug 831179