Skip to content
Snippets Groups Projects
  • Jonathan Wakely's avatar
    92b47a32
    libstdc++: Add configure checks for semaphores · 92b47a32
    Jonathan Wakely authored
    This moves the checks for POSIX semaphores to configure time. As well as
    requiring <semaphore.h> and SEM_VALUE_MAX, we also require the
    sem_timedwait function. That was only optional in POSIX 2001 (and is
    absent on Darwin).
    
    libstdc++-v3/ChangeLog:
    
    	* acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Check for
    	* config.h.in: Regenerate.
    	* configure: Regenerate.
    	* include/bits/semaphore_base.h (_GLIBCXX_HAVE_POSIX_SEMAPHORE):
    	Check autoconf macro instead of defining it here.
    92b47a32
    History
    libstdc++: Add configure checks for semaphores
    Jonathan Wakely authored
    This moves the checks for POSIX semaphores to configure time. As well as
    requiring <semaphore.h> and SEM_VALUE_MAX, we also require the
    sem_timedwait function. That was only optional in POSIX 2001 (and is
    absent on Darwin).
    
    libstdc++-v3/ChangeLog:
    
    	* acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Check for
    	* config.h.in: Regenerate.
    	* configure: Regenerate.
    	* include/bits/semaphore_base.h (_GLIBCXX_HAVE_POSIX_SEMAPHORE):
    	Check autoconf macro instead of defining it here.