[haiku-commits] haiku: hrev50985 - src/libs/posix_error_mapper

  • From: julian.harnath@xxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 28 Feb 2017 01:13:12 +0100 (CET)

hrev50985 adds 1 changeset to branch 'master'
old head: 59bdca5dd41d480cd87ddf062237d0243cc66ee4
new head: 662dfd3a3f13cdd796bb67ae5669e64512ef5b7d
overview: 
http://cgit.haiku-os.org/haiku/log/?qt=range&q=662dfd3a3f13+%5E59bdca5dd41d

----------------------------------------------------------------------------

662dfd3a3f13: posix_error_mapper: fix pthread_mutex*_get*()
  
  * Commit 0bec83a8 added const to the signatures of
    pthread_mutex*_get*() functions. The declarations in
    posix_error_mapper now didn't match that anymore, so the
    extern C was lost, adding C++ mangling to the functions
    from posix_error_mapper. This made linking applications with
    posix_error_mapper fail.

                          [ Julian Harnath <julian.harnath@xxxxxxxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev50985
Commit:      662dfd3a3f13cdd796bb67ae5669e64512ef5b7d
URL:         http://cgit.haiku-os.org/haiku/commit/?id=662dfd3a3f13
Author:      Julian Harnath <julian.harnath@xxxxxxxxxxxxxx>
Date:        Tue Feb 28 01:08:40 2017 UTC

----------------------------------------------------------------------------

2 files changed, 5 insertions(+), 5 deletions(-)
src/libs/posix_error_mapper/pthread_mutex.cpp     | 2 +-
src/libs/posix_error_mapper/pthread_mutexattr.cpp | 8 ++++----

----------------------------------------------------------------------------

diff --git a/src/libs/posix_error_mapper/pthread_mutex.cpp 
b/src/libs/posix_error_mapper/pthread_mutex.cpp
index eb689f2..e80c824 100644
--- a/src/libs/posix_error_mapper/pthread_mutex.cpp
+++ b/src/libs/posix_error_mapper/pthread_mutex.cpp
@@ -14,7 +14,7 @@ WRAPPER_FUNCTION(int, pthread_mutex_destroy, (pthread_mutex_t 
*mutex),
 
 
 WRAPPER_FUNCTION(int, pthread_mutex_getprioceiling,
-               (pthread_mutex_t *mutex, int *_priorityCeiling),
+               (const pthread_mutex_t *mutex, int *_priorityCeiling),
        return B_TO_POSITIVE_ERROR(sReal_pthread_mutex_getprioceiling(mutex,
                _priorityCeiling));
 )
diff --git a/src/libs/posix_error_mapper/pthread_mutexattr.cpp 
b/src/libs/posix_error_mapper/pthread_mutexattr.cpp
index 2d3d7e7..c964b76 100644
--- a/src/libs/posix_error_mapper/pthread_mutexattr.cpp
+++ b/src/libs/posix_error_mapper/pthread_mutexattr.cpp
@@ -15,28 +15,28 @@ WRAPPER_FUNCTION(int, pthread_mutexattr_destroy,
 
 
 WRAPPER_FUNCTION(int, pthread_mutexattr_getprioceiling,
-               (pthread_mutexattr_t *mutexAttr, int *_priorityCeiling),
+               (const pthread_mutexattr_t *mutexAttr, int *_priorityCeiling),
        return 
B_TO_POSITIVE_ERROR(sReal_pthread_mutexattr_getprioceiling(mutexAttr,
                _priorityCeiling));
 )
 
 
 WRAPPER_FUNCTION(int, pthread_mutexattr_getprotocol,
-               (pthread_mutexattr_t *mutexAttr, int *_protocol),
+               (const pthread_mutexattr_t *mutexAttr, int *_protocol),
        return 
B_TO_POSITIVE_ERROR(sReal_pthread_mutexattr_getprotocol(mutexAttr,
                _protocol));
 )
 
 
 WRAPPER_FUNCTION(int, pthread_mutexattr_getpshared,
-               (pthread_mutexattr_t *mutexAttr, int *_processShared),
+               (const pthread_mutexattr_t *mutexAttr, int *_processShared),
        return B_TO_POSITIVE_ERROR(sReal_pthread_mutexattr_getpshared(mutexAttr,
                _processShared));
 )
 
 
 WRAPPER_FUNCTION(int, pthread_mutexattr_gettype,
-               (pthread_mutexattr_t *mutexAttr, int *_type),
+               (const pthread_mutexattr_t *mutexAttr, int *_type),
        return B_TO_POSITIVE_ERROR(sReal_pthread_mutexattr_gettype(mutexAttr,
                _type));
 )


Other related posts:

  • » [haiku-commits] haiku: hrev50985 - src/libs/posix_error_mapper - julian . harnath