summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2012-08-30 23:48:39 +0200
committerThomas Schwinge <thomas@codesourcery.com>2012-08-30 23:48:39 +0200
commita8b134d8c667b0105d7194a78f3fe478a3857302 (patch)
tree94da06519d2a623ce4e7aee21fd7b32ffecfea59 /include
parent013f554871c671f88942c9429720d3bb9a76c5ea (diff)
parent0096579c8bea920f7c42b40ea22db621da6480a5 (diff)
Merge commit 'refs/top-bases/t/stand-alone' into t/stand-alonet/stand-alone
Conflicts: Makefile.am
Diffstat (limited to 'include')
-rw-r--r--include/pthread/pthread.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/pthread/pthread.h b/include/pthread/pthread.h
index 4dbcb0c..cd32fb2 100644
--- a/include/pthread/pthread.h
+++ b/include/pthread/pthread.h
@@ -240,7 +240,7 @@ extern pthread_t pthread_self (void);
#define PTHREAD_MUTEX_TIMED_NP __PTHREAD_MUTEX_TIMED
#define PTHREAD_MUTEX_ERRORCHECK_NP __PTHREAD_MUTEX_ERRORCHECK
#define PTHREAD_MUTEX_RECURSIVE_NP __PTHREAD_MUTEX_RECURSIVE
-#ifdef __USE_UNIX98
+#if defined __USE_UNIX98 || defined __USE_XOPEN2K8
#define PTHREAD_MUTEX_NORMAL PTHREAD_MUTEX_TIMED_NP
#define PTHREAD_MUTEX_ERRORCHECK PTHREAD_MUTEX_ERRORCHECK_NP
#define PTHREAD_MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP
@@ -295,7 +295,7 @@ extern int pthread_mutexattr_setpshared(pthread_mutexattr_t *attr,
int pshared);
-#ifdef __USE_UNIX98
+#if defined __USE_UNIX98 || defined __USE_XOPEN2K8
/* Return the value of the type attribute in *ATTR in *TYPE. */
extern int pthread_mutexattr_gettype(const pthread_mutexattr_t *__restrict attr,
int *__restrict type);