re PR libstdc++/49745 (error: ‘int truncate’ redeclared as different kind of symbol)
authorPaolo Carlini <paolo.carlini@oracle.com>
Fri, 15 Jul 2011 21:52:06 +0000 (21:52 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 15 Jul 2011 21:52:06 +0000 (21:52 +0000)
commit6545e33e69832eb0e5f946787f1764cf0179a049
tree332e8978eae096a928a46f6e6c23fe9e22933de4
parentd0a9fbe16c999748339a5fe77da8e6687337d0e0
re PR libstdc++/49745 (error: ‘int truncate’ redeclared as different kind of symbol)

/gcc
2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
    Jakub Jelinek  <jakub@redhat.com>
    Jonathan Wakely  <jwakely.gcc@gmail.com>

PR libstdc++/49745
* gthr-posix.h: Do not include <unistd.h> unconditionally; use
_GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.

/libstdc++-v3
2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
    Jakub Jelinek  <jakub@redhat.com>

PR libstdc++/49745
* acinclude.m4 ([GLIBCXX_CHECK_GTHREADS]): Check separately for
_POSIX_TIMEOUTS and define _GTHREADS_USE_MUTEX_TIMEDLOCK.
* libstdc++-v3/libsupc++/guard.cc: Include <unistd.h>.
* testsuite/17_intro/headers/c++1998/49745.cc: New.
* configure: Regenerate.
* config.h.in: Likewise.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
Co-Authored-By: Jonathan Wakely <jwakely.gcc@gmail.com>
From-SVN: r176335
gcc/ChangeLog
gcc/gthr-posix.h
libstdc++-v3/ChangeLog
libstdc++-v3/acinclude.m4
libstdc++-v3/config.h.in
libstdc++-v3/configure
libstdc++-v3/libsupc++/guard.cc
libstdc++-v3/testsuite/17_intro/headers/c++1998/49745.cc [new file with mode: 0644]