]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR ada/56274 (libada bootstrap failure on kfreebsd ("pthread_rwlock_t" not declare...
authorEric Botcazou <ebotcazou@adacore.com>
Sun, 6 Dec 2015 15:29:03 +0000 (15:29 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sun, 6 Dec 2015 15:29:03 +0000 (15:29 +0000)
PR ada/56274
* s-osinte-kfreebsd-gnu.ads (pthread_rwlock_t): New subtype.
(pthread_rwlockattr_t): Likewise.

From-SVN: r231339

gcc/ada/ChangeLog
gcc/ada/s-osinte-kfreebsd-gnu.ads

index 51704de93a2a08ceca77795cc62c3097d8a0e952..4457dbb7049636977f21c034b940e8e9e4a3426d 100644 (file)
@@ -1,3 +1,9 @@
+2015-12-06  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR ada/56274
+       * s-osinte-kfreebsd-gnu.ads (pthread_rwlock_t): New subtype.
+       (pthread_rwlockattr_t): Likewise.
+
 2015-12-06  Ludovic Brenta  <ludovic@ludovic-brenta.org>
 
        PR ada/49944
index a11cc6b4f9cb760d07daa304bb14643df17888ba..3f6ef9bb4090b990ef5f811c704f523ecb7f8792 100644 (file)
@@ -292,6 +292,14 @@ package System.OS_Interface is
    PTHREAD_SCOPE_PROCESS : constant := 0;
    PTHREAD_SCOPE_SYSTEM  : constant := 2;
 
+   --  Read/Write lock not supported on kfreebsd. To add support both types
+   --  pthread_rwlock_t and pthread_rwlockattr_t must properly be defined
+   --  with the associated routines pthread_rwlock_[init/destroy] and
+   --  pthread_rwlock_[rdlock/wrlock/unlock].
+
+   subtype pthread_rwlock_t     is pthread_mutex_t;
+   subtype pthread_rwlockattr_t is pthread_mutexattr_t;
+
    -----------
    -- Stack --
    -----------