This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch sid
in repository glibc.

commit 07efa6207f56ecbcb429897b967b1df74bd31460
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Sun Nov 27 17:30:52 2016 +0100

    hurd-i386/cvs-hurd_signal.h_c++.diff: New patch to fix building gdb
---
 debian/changelog                                   |  1 +
 .../patches/hurd-i386/cvs-hurd_signal.h_c++.diff   | 35 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 3 files changed, 37 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 8a468d3..edee79f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ glibc (2.24-8) UNRELEASED; urgency=medium
   [ Samuel Thibault ]
   * hurd-i386/tg-libc_rwlock_recursive.diff: New patch to work around
     fakeroot-tcp issue, see #845930.
+  * hurd-i386/cvs-hurd_signal.h_c++.diff: New patch to fix building gdb.
 
  -- Aurelien Jarno <aure...@debian.org>  Fri, 25 Nov 2016 23:09:39 +0100
 
diff --git a/debian/patches/hurd-i386/cvs-hurd_signal.h_c++.diff 
b/debian/patches/hurd-i386/cvs-hurd_signal.h_c++.diff
new file mode 100644
index 0000000..1fddeb9
--- /dev/null
+++ b/debian/patches/hurd-i386/cvs-hurd_signal.h_c++.diff
@@ -0,0 +1,35 @@
+commit 2dacdc5eb0171078eeb96b12b0761f533a62f70e
+Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+Date:   Sun Nov 27 17:22:22 2016 +0100
+
+    hurd: fix using hurd/signal.h in C++ programs
+    
+            * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Cast expressions results 
to
+            error_t to fix usage in C++ programs.
+
+diff --git a/hurd/hurd/signal.h b/hurd/hurd/signal.h
+index 85e5152..96f42d5 100644
+--- a/hurd/hurd/signal.h
++++ b/hurd/hurd/signal.h
+@@ -340,18 +340,18 @@ extern mach_msg_timeout_t _hurd_interrupted_rpc_timeout;
+     do                                                                        
      \
+       {                                                                       
      \
+       /* Get the message port.  */                                          \
+-      __err = (fetch_msgport_expr);                                         \
++      __err = (error_t) (fetch_msgport_expr);                               \
+       if (__err)                                                            \
+         break;                                                              \
+       /* Get the reference port.  */                                        \
+-      __err = (fetch_refport_expr);                                         \
++      __err = (error_t) (fetch_refport_expr);                               \
+       if (__err)                                                            \
+         {                                                                   \
+           /* Couldn't get it; deallocate MSGPORT and fail.  */              \
+           __mach_port_deallocate (__mach_task_self (), msgport);            \
+           break;                                                            \
+         }                                                                   \
+-      __err = (rpc_expr);                                                   \
++      __err = (error_t) (rpc_expr);                                         \
+       __mach_port_deallocate (__mach_task_self (), msgport);                \
+       if ((dealloc_refport) && refport != MACH_PORT_NULL)                   \
+         __mach_port_deallocate (__mach_task_self (), refport);              \
diff --git a/debian/patches/series b/debian/patches/series
index c4d05ee..b829544 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -139,6 +139,7 @@ hurd-i386/tg-libpthread-gsync-mutex.diff
 hurd-i386/tg-NOFOLLOW.diff
 hurd-i386/tg-NOFOLLOW-DIRECTORY.diff
 hurd-i386/tg-libc_rwlock_recursive.diff
+hurd-i386/cvs-hurd_signal.h_c++.diff
 
 i386/local-biarch.diff
 i386/local-cmov.diff

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-glibc/glibc.git

Reply via email to