diff options
author | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-05-25 16:13:52 +0000 |
---|---|---|
committer | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-05-25 16:13:52 +0000 |
commit | 76f65781cf9bd44e170b21b1fb49d8c78cc1f075 (patch) | |
tree | a49865370434a936531f4f9740aa003d66e7b81f | |
parent | 239a4beafbd743137954b847d3fed3bda913f91d (diff) | |
download | gcc-76f65781cf9bd44e170b21b1fb49d8c78cc1f075.tar.gz |
Fix configure test for sendfile()
* acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Fix test for sendfile.
* configure: Regenerate.
* config.h.in: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@236730 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | libstdc++-v3/ChangeLog | 4 | ||||
-rw-r--r-- | libstdc++-v3/acinclude.m4 | 4 | ||||
-rw-r--r-- | libstdc++-v3/config.h.in | 2 | ||||
-rwxr-xr-x | libstdc++-v3/configure | 4 |
4 files changed, 9 insertions, 5 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 358341b096f..e75d551a800 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,9 @@ 2016-05-25 Jonathan Wakely <jwakely@redhat.com> + * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Fix test for sendfile. + * configure: Regenerate. + * config.h.in: Regenerate. + * include/bits/c++config (_GLIBCXX14_USE_CONSTEXPR): Remove it. * include/bits/hashtable_policy.h (_Power2_rehash_policy::_M_next_bkt): Remove const qualification on function. Replace diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index b0f88cbb404..0824243ced9 100644 --- a/libstdc++-v3/acinclude.m4 +++ b/libstdc++-v3/acinclude.m4 @@ -4373,7 +4373,7 @@ dnl gnu* | linux* | solaris*) GCC_TRY_COMPILE_OR_LINK( [#include <sys/sendfile.h>], - [sendfile(1, 2, (off_t*)NULL, sizeof 1);], + [sendfile(1, 2, (off_t*)0, sizeof 1);], [glibcxx_cv_sendfile=yes], [glibcxx_cv_sendfile=no]) ;; @@ -4383,7 +4383,7 @@ dnl esac ]) if test $glibcxx_cv_sendfile = yes; then - AC_DEFINE(_GLIBCXX_USE_SENDFILE, 1, [Define if sendfile is available in <sys/stat.h>.]) + AC_DEFINE(_GLIBCXX_USE_SENDFILE, 1, [Define if sendfile is available in <sys/sendfile.h>.]) fi AC_MSG_RESULT($glibcxx_cv_sendfile) dnl diff --git a/libstdc++-v3/config.h.in b/libstdc++-v3/config.h.in index 701d4796d38..5ac2df4d8a8 100644 --- a/libstdc++-v3/config.h.in +++ b/libstdc++-v3/config.h.in @@ -937,7 +937,7 @@ /* Define if _SC_NPROC_ONLN is available in <unistd.h>. */ #undef _GLIBCXX_USE_SC_NPROC_ONLN -/* Define if sendfile is available in <sys/stat.h>. */ +/* Define if sendfile is available in <sys/sendfile.h>. */ #undef _GLIBCXX_USE_SENDFILE /* Define if struct stat has timespec members. */ diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index 41797a971b5..4e811665a80 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -80358,7 +80358,7 @@ else int main () { -sendfile(1, 2, (off_t*)NULL, sizeof 1); +sendfile(1, 2, (off_t*)0, sizeof 1); ; return 0; } @@ -80379,7 +80379,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext int main () { -sendfile(1, 2, (off_t*)NULL, sizeof 1); +sendfile(1, 2, (off_t*)0, sizeof 1); ; return 0; } |