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

From-SVN: r231337

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

index a238a4386a354ecc03e7fde6d521a81ff13a3564..ebd9f3cb4c117e6ebeac6eaafa1a4b319e9db35c 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 --
    -----------