diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-12-22 14:21:59 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-12-22 14:25:41 +0100 |
commit | 0c97380ee638f0cd545b1853533de5cc41e21f4f (patch) | |
tree | 9c758a2c722bb8a3d970fecc6dfeeb99f5193dfe /Libraries/LibC/sys | |
parent | 523fd6533e008cce85229b59ee58c552d565b87b (diff) | |
download | serenity-0c97380ee638f0cd545b1853533de5cc41e21f4f.zip |
LibPthread+LibC: Support PTHREAD_MUTEX_RECURSIVE
This allows SDL to build against our native recursive mutex instead
of providing its own. Also it's just a nice feature to have. :^)
Diffstat (limited to 'Libraries/LibC/sys')
-rw-r--r-- | Libraries/LibC/sys/types.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Libraries/LibC/sys/types.h b/Libraries/LibC/sys/types.h index c331cf7a16..0ce05271cc 100644 --- a/Libraries/LibC/sys/types.h +++ b/Libraries/LibC/sys/types.h @@ -63,7 +63,14 @@ struct utimbuf { typedef int pthread_t; typedef int pthread_key_t; typedef void* pthread_once_t; -typedef uint32_t pthread_mutex_t; + +typedef struct __pthread_mutex_t { + uint32_t lock; + pthread_t owner; + int level; + int type; +} pthread_mutex_t; + typedef void* pthread_attr_t; typedef struct __pthread_mutexattr_t { int type; |