aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2014-09-23 11:20:38 -0700
committerPaul Eggert2014-09-23 11:20:38 -0700
commitdac5be10f3f08c78cf98a4b9d4774b46b16ace40 (patch)
tree033b7d9bd6a55d38a92238f99c85aa88e9f05fed
parent97914756e8de76b8e83550eab2e12e5dfcb87754 (diff)
downloademacs-dac5be10f3f08c78cf98a4b9d4774b46b16ace40.tar.gz
emacs-dac5be10f3f08c78cf98a4b9d4774b46b16ace40.zip
Merge from gnulib.
This incorporates: 2014-09-11 fcntl-h: fix compilation with Intel C++ compiler 2014-09-04 pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
-rw-r--r--ChangeLog6
-rw-r--r--lib/fcntl.in.h4
-rw-r--r--m4/pthread_sigmask.m47
3 files changed, 12 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index cd005c3d1d7..adc0a509490 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
12014-09-23 Paul Eggert <eggert@cs.ucla.edu>
2
3 Merge from gnulib, incorporating:
4 2014-09-11 fcntl-h: fix compilation with Intel C++ compiler
5 2014-09-04 pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
6
12014-09-22 Jan Djärv <jan.h.d@swipnet.se> 72014-09-22 Jan Djärv <jan.h.d@swipnet.se>
2 8
3 * configure.ac: Increase headerpad_extra to 1000, update the comment 9 * configure.ac: Increase headerpad_extra to 1000, update the comment
diff --git a/lib/fcntl.in.h b/lib/fcntl.in.h
index e23b4b2bcdd..f63cd6a734c 100644
--- a/lib/fcntl.in.h
+++ b/lib/fcntl.in.h
@@ -34,7 +34,7 @@
34 extern "C" { ... } block, which leads to errors in C++ mode with the 34 extern "C" { ... } block, which leads to errors in C++ mode with the
35 overridden <sys/stat.h> from gnulib. These errors are known to be gone 35 overridden <sys/stat.h> from gnulib. These errors are known to be gone
36 with g++ version >= 4.3. */ 36 with g++ version >= 4.3. */
37#if !(defined __GLIBC__ || defined __UCLIBC__) || (defined __cplusplus && defined GNULIB_NAMESPACE && !(__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))) 37#if !(defined __GLIBC__ || defined __UCLIBC__) || (defined __cplusplus && defined GNULIB_NAMESPACE && (defined __ICC || !(__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))))
38# include <sys/stat.h> 38# include <sys/stat.h>
39#endif 39#endif
40#@INCLUDE_NEXT@ @NEXT_FCNTL_H@ 40#@INCLUDE_NEXT@ @NEXT_FCNTL_H@
@@ -53,7 +53,7 @@
53 extern "C" { ... } block, which leads to errors in C++ mode with the 53 extern "C" { ... } block, which leads to errors in C++ mode with the
54 overridden <sys/stat.h> from gnulib. These errors are known to be gone 54 overridden <sys/stat.h> from gnulib. These errors are known to be gone
55 with g++ version >= 4.3. */ 55 with g++ version >= 4.3. */
56#if !(defined __GLIBC__ || defined __UCLIBC__) || (defined __cplusplus && defined GNULIB_NAMESPACE && !(__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))) 56#if !(defined __GLIBC__ || defined __UCLIBC__) || (defined __cplusplus && defined GNULIB_NAMESPACE && (defined __ICC || !(__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))))
57# include <sys/stat.h> 57# include <sys/stat.h>
58#endif 58#endif
59/* The include_next requires a split double-inclusion guard. */ 59/* The include_next requires a split double-inclusion guard. */
diff --git a/m4/pthread_sigmask.m4 b/m4/pthread_sigmask.m4
index 2b3347f992d..5153828a969 100644
--- a/m4/pthread_sigmask.m4
+++ b/m4/pthread_sigmask.m4
@@ -1,4 +1,4 @@
1# pthread_sigmask.m4 serial 14 1# pthread_sigmask.m4 serial 15
2dnl Copyright (C) 2011-2014 Free Software Foundation, Inc. 2dnl Copyright (C) 2011-2014 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
@@ -40,7 +40,7 @@ AC_DEFUN([gl_FUNC_PTHREAD_SIGMASK],
40 LIBS="$gl_save_LIBS" 40 LIBS="$gl_save_LIBS"
41 ]) 41 ])
42 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then 42 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
43 dnl pthread_sigmask is available with -lpthread. 43 dnl pthread_sigmask is available with -pthread or -lpthread.
44 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD" 44 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
45 else 45 else
46 dnl pthread_sigmask is not available at all. 46 dnl pthread_sigmask is not available at all.
@@ -86,7 +86,7 @@ AC_DEFUN([gl_FUNC_PTHREAD_SIGMASK],
86 AC_SUBST([LIB_PTHREAD_SIGMASK]) 86 AC_SUBST([LIB_PTHREAD_SIGMASK])
87 dnl We don't need a variable LTLIB_PTHREAD_SIGMASK, because when 87 dnl We don't need a variable LTLIB_PTHREAD_SIGMASK, because when
88 dnl "$gl_threads_api" = posix, $LTLIBMULTITHREAD and $LIBMULTITHREAD are the 88 dnl "$gl_threads_api" = posix, $LTLIBMULTITHREAD and $LIBMULTITHREAD are the
89 dnl same: either both empty or both "-lpthread". 89 dnl same.
90 90
91 dnl Now test for some bugs in the system function. 91 dnl Now test for some bugs in the system function.
92 if test $HAVE_PTHREAD_SIGMASK = 1; then 92 if test $HAVE_PTHREAD_SIGMASK = 1; then
@@ -98,6 +98,7 @@ AC_DEFUN([gl_FUNC_PTHREAD_SIGMASK],
98 dnl no effect. 98 dnl no effect.
99 if test -z "$LIB_PTHREAD_SIGMASK"; then 99 if test -z "$LIB_PTHREAD_SIGMASK"; then
100 case " $LIBS " in 100 case " $LIBS " in
101 *' -pthread '*) ;;
101 *' -lpthread '*) ;; 102 *' -lpthread '*) ;;
102 *) 103 *)
103 AC_CACHE_CHECK([whether pthread_sigmask works without -lpthread], 104 AC_CACHE_CHECK([whether pthread_sigmask works without -lpthread],