Author: Stefano Rivera <stef...@rivera.za.net> Branch: Changeset: r83228:936b7e8d9b6c Date: 2016-03-21 14:32 -0400 http://bitbucket.org/pypy/pypy/changeset/936b7e8d9b6c/
Log: Support GNU/kFreeBSD Debian ports in vmprof diff --git a/rpython/rlib/rvmprof/src/vmprof_config.h b/rpython/rlib/rvmprof/src/vmprof_config.h --- a/rpython/rlib/rvmprof/src/vmprof_config.h +++ b/rpython/rlib/rvmprof/src/vmprof_config.h @@ -1,5 +1,5 @@ #define HAVE_SYS_UCONTEXT_H -#if defined(__FreeBSD__) +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) #ifdef __i386__ #define PC_FROM_UCONTEXT uc_mcontext.mc_eip #else diff --git a/rpython/translator/c/src/thread_pthread.c b/rpython/translator/c/src/thread_pthread.c --- a/rpython/translator/c/src/thread_pthread.c +++ b/rpython/translator/c/src/thread_pthread.c @@ -37,7 +37,7 @@ # define THREAD_STACK_SIZE 0 /* use default stack size */ # endif -# if (defined(__APPLE__) || defined(__FreeBSD__)) && defined(THREAD_STACK_SIZE) && THREAD_STACK_SIZE == 0 +# if (defined(__APPLE__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__)) && defined(THREAD_STACK_SIZE) && THREAD_STACK_SIZE == 0 /* The default stack size for new threads on OSX is small enough that * we'll get hard crashes instead of 'maximum recursion depth exceeded' * exceptions. @@ -84,7 +84,7 @@ if (tss != 0) pthread_attr_setstacksize(&attrs, tss); #endif -#if defined(PTHREAD_SYSTEM_SCHED_SUPPORTED) && !defined(__FreeBSD__) +#if defined(PTHREAD_SYSTEM_SCHED_SUPPORTED) && !(defined(__FreeBSD__) || defined(__FreeBSD_kernel__)) pthread_attr_setscope(&attrs, PTHREAD_SCOPE_SYSTEM); #endif _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit