aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Rudalics2016-06-10 08:22:16 +0200
committerMartin Rudalics2016-06-10 08:22:16 +0200
commit57e6c66dfb179375d323e1ece9099255f53e9cfb (patch)
treede2491c940cb195a4c9290ffe2dd02d52189e70d
parentbb0f9253dc267c2d8f2e88d441b13a98d2e6d207 (diff)
parent25159d82f5854deff47df8425f827b4d6f028756 (diff)
downloademacs-57e6c66dfb179375d323e1ece9099255f53e9cfb.tar.gz
emacs-57e6c66dfb179375d323e1ece9099255f53e9cfb.zip
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
-rw-r--r--admin/CPP-DEFINES1
-rw-r--r--configure.ac2
-rw-r--r--src/conf_post.h2
-rw-r--r--src/process.c7
4 files changed, 6 insertions, 6 deletions
diff --git a/admin/CPP-DEFINES b/admin/CPP-DEFINES
index d9df152bff5..c7ec8ce6fed 100644
--- a/admin/CPP-DEFINES
+++ b/admin/CPP-DEFINES
@@ -156,7 +156,6 @@ HAVE_GETLOADAVG
156HAVE_GETOPT_H 156HAVE_GETOPT_H
157HAVE_GETOPT_LONG_ONLY 157HAVE_GETOPT_LONG_ONLY
158HAVE_GETPAGESIZE 158HAVE_GETPAGESIZE
159HAVE_GETPEERNAME
160HAVE_GETPT 159HAVE_GETPT
161HAVE_GETPWENT 160HAVE_GETPWENT
162HAVE_GETRLIMIT 161HAVE_GETRLIMIT
diff --git a/configure.ac b/configure.ac
index a367582f2ab..069a7260e88 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3848,7 +3848,7 @@ lrand48 random rint \
3848select getpagesize setlocale newlocale \ 3848select getpagesize setlocale newlocale \
3849getrlimit setrlimit shutdown \ 3849getrlimit setrlimit shutdown \
3850pthread_sigmask strsignal setitimer \ 3850pthread_sigmask strsignal setitimer \
3851sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \ 3851sendto recvfrom getsockname getifaddrs freeifaddrs \
3852gai_strerror sync \ 3852gai_strerror sync \
3853getpwent endpwent getgrent endgrent \ 3853getpwent endpwent getgrent endgrent \
3854cfmakeraw cfsetspeed copysign __executable_start log2) 3854cfmakeraw cfsetspeed copysign __executable_start log2)
diff --git a/src/conf_post.h b/src/conf_post.h
index 1dd915b5969..6f48fd6d184 100644
--- a/src/conf_post.h
+++ b/src/conf_post.h
@@ -88,7 +88,7 @@ typedef bool bool_bf;
88 88
89/* Yield PTR, which must be aligned to ALIGNMENT. */ 89/* Yield PTR, which must be aligned to ALIGNMENT. */
90#if ! __has_builtin (__builtin_assume_aligned) 90#if ! __has_builtin (__builtin_assume_aligned)
91# define __builtin_assume_aligned(ptr, alignment, ...) ((void *) (ptr)) 91# define __builtin_assume_aligned(ptr, ...) ((void *) (ptr))
92#endif 92#endif
93 93
94#ifdef DARWIN_OS 94#ifdef DARWIN_OS
diff --git a/src/process.c b/src/process.c
index 5e06ccccac8..4d287d8cc51 100644
--- a/src/process.c
+++ b/src/process.c
@@ -5492,15 +5492,16 @@ wait_reading_process_output (intmax_t time_limit, int nsecs, int read_kbd,
5492 5492
5493 p = XPROCESS (proc); 5493 p = XPROCESS (proc);
5494 5494
5495#ifdef GNU_LINUX 5495#ifndef WINDOWSNT
5496 /* getsockopt(,,SO_ERROR,,) is said to hang on some systems.
5497 So only use it on systems where it is known to work. */
5498 { 5496 {
5499 socklen_t xlen = sizeof (xerrno); 5497 socklen_t xlen = sizeof (xerrno);
5500 if (getsockopt (channel, SOL_SOCKET, SO_ERROR, &xerrno, &xlen)) 5498 if (getsockopt (channel, SOL_SOCKET, SO_ERROR, &xerrno, &xlen))
5501 xerrno = errno; 5499 xerrno = errno;
5502 } 5500 }
5503#else 5501#else
5502 /* On MS-Windows, getsockopt clears the error for the
5503 entire process, which may not be the right thing; see
5504 w32.c. Use getpeername instead. */
5504 { 5505 {
5505 struct sockaddr pname; 5506 struct sockaddr pname;
5506 socklen_t pnamelen = sizeof (pname); 5507 socklen_t pnamelen = sizeof (pname);