]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: fix compilation of signal.h in C++
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 7 Feb 2015 21:39:38 +0000 (22:39 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 7 Feb 2015 21:41:23 +0000 (22:41 +0100)
ChangeLog
hurd/hurd/signal.h

index f8e36ed10417b8c236082b275d06397483e6ad81..ade23843ac6b88a7d342a3b4fb5e0e54285c0407 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -27,8 +27,9 @@
        __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
        * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
        MACH_RCV_TIMED_OUT.
-       * hurd/hurd/signal.h (_hurd_self_sigstate): Explicit cast from void *
-       to struct hurd_sigstate **.
+       * hurd/hurd/signal.h (_hurd_self_sigstate,
+       _hurd_critical_section_lock, _hurd_critical_section_unlock):
+       Explicit casts from void *.
 
        [BZ #4719]
        * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
index f844f0e2eaccdb583c4a8daba7df066d41c9822d..81d049c343a95725f51d960094ea09c37eb276bb 100644 (file)
@@ -167,7 +167,7 @@ extern int _hurd_core_limit;
 _HURD_SIGNAL_H_EXTERN_INLINE void *
 _hurd_critical_section_lock (void)
 {
-  struct hurd_sigstate **location =
+  struct hurd_sigstate **location = (struct hurd_sigstate **)
     (void *) __hurd_threadvar_location (_HURD_THREADVAR_SIGSTATE);
   struct hurd_sigstate *ss = *location;
   if (ss == NULL)
@@ -198,7 +198,7 @@ _hurd_critical_section_unlock (void *our_lock)
   else
     {
       /* It was us who acquired the critical section lock.  Unlock it.  */
-      struct hurd_sigstate *ss = our_lock;
+      struct hurd_sigstate *ss = (struct hurd_sigstate *) our_lock;
       sigset_t pending;
       __spin_lock (&ss->lock);
       __spin_unlock (&ss->critical_section_lock);