Commit 2097a890 by Eric Botcazou Committed by Eric Botcazou

re PR ada/56274 (libada bootstrap failure on kfreebsd ("pthread_rwlock_t" not…

re PR ada/56274 (libada bootstrap failure on kfreebsd ("pthread_rwlock_t" not declared in "OS_Interface"))

	PR ada/56274
	* s-osinte-kfreebsd-gnu.ads (pthread_rwlock_t): New subtype.
	(pthread_rwlockattr_t): Likewise.

From-SVN: r231337
parent 928b5b52
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> 2015-12-06 Ludovic Brenta <ludovic@ludovic-brenta.org>
PR ada/49944 PR ada/49944
......
...@@ -292,6 +292,14 @@ package System.OS_Interface is ...@@ -292,6 +292,14 @@ package System.OS_Interface is
PTHREAD_SCOPE_PROCESS : constant := 0; PTHREAD_SCOPE_PROCESS : constant := 0;
PTHREAD_SCOPE_SYSTEM : constant := 2; 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 -- -- Stack --
----------- -----------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment