Changeset 77fbbd6 in rtems for cpukit/configure.ac


Ignore:
Timestamp:
Jul 3, 2018, 9:50:53 AM (18 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
e755782
Parents:
e07b51a7
git-author:
Sebastian Huber <sebastian.huber@…> (07/03/18 09:50:53)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/05/18 05:10:04)
Message:

posix: Check for new <pthread.h> prototypes

Update #3342.
Update #3343.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/configure.ac

    re07b51a7 r77fbbd6  
    115115  #define _GNU_SOURCE
    116116  #include <pthread.h>])
     117
     118AC_LANG_PUSH(C)
     119AC_MSG_CHECKING([for pthread_mutex_getprioceiling(const pthread_mutex_t *, ...)])
     120AC_COMPILE_IFELSE([AC_LANG_SOURCE([
     121#include <pthread.h>
     122int pthread_mutex_getprioceiling(const pthread_mutex_t *__restrict, int *);
     123])],[
     124AC_MSG_RESULT([yes])
     125AC_DEFINE(HAVE_PTHREAD_MUTEX_GETCEILING_CONST, [], [pthread_mutex_getprioceiling(const pthread_mutex_t *, ...)])
     126],[
     127AC_MSG_RESULT([no])
     128])
     129AC_MSG_CHECKING([for pthread_setschedparam(..., const struct sched_param *)])
     130AC_COMPILE_IFELSE([AC_LANG_SOURCE([
     131#include <pthread.h>
     132int pthread_setschedparam(pthread_t, int, const struct sched_param *);
     133])],[
     134AC_MSG_RESULT([yes])
     135AC_DEFINE(HAVE_PTHREAD_SETSCHEDPARAM_CONST, [], [pthread_setschedparam(..., const struct sched_param *)])
     136],[
     137AC_MSG_RESULT([no])
     138])
     139AC_LANG_POP(C)
    117140
    118141# Mandated by POSIX, not declared in some versions of newlib.
Note: See TracChangeset for help on using the changeset viewer.