summaryrefslogtreecommitdiff
path: root/lib/pthread.in.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-11-20 02:31:42 +0100
committerBruno Haible <bruno@clisp.org>2019-11-20 02:32:34 +0100
commit9b4d21ead450e082119aa5175d0e1cba1755e392 (patch)
tree2e8b9780afd6cc3f4e09bc9f17a40ec1660a1f47 /lib/pthread.in.h
parenta4740cc6fa277fb41aab06563657458e03ab0346 (diff)
downloadgnulib-9b4d21ead450e082119aa5175d0e1cba1755e392.tar.gz
pthread-thread: Fix prototype of pthread_attr_getdetachstate.
* lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter to 'const pthread_attr_t *'. * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise. * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
Diffstat (limited to 'lib/pthread.in.h')
-rw-r--r--lib/pthread.in.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/pthread.in.h b/lib/pthread.in.h
index 4fc22bfc39..9c0a422342 100644
--- a/lib/pthread.in.h
+++ b/lib/pthread.in.h
@@ -509,18 +509,18 @@ _GL_WARN_ON_USE (pthread_attr_init, "pthread_attr_init is not portable - "
# define pthread_attr_getdetachstate rpl_pthread_attr_getdetachstate
# endif
_GL_FUNCDECL_RPL (pthread_attr_getdetachstate, int,
- (pthread_attr_t *attr, int *detachstatep)
+ (const pthread_attr_t *attr, int *detachstatep)
_GL_ARG_NONNULL ((1, 2)));
_GL_CXXALIAS_RPL (pthread_attr_getdetachstate, int,
- (pthread_attr_t *attr, int *detachstatep));
+ (const pthread_attr_t *attr, int *detachstatep));
# else
# if !@HAVE_PTHREAD_ATTR_GETDETACHSTATE@
_GL_FUNCDECL_SYS (pthread_attr_getdetachstate, int,
- (pthread_attr_t *attr, int *detachstatep)
+ (const pthread_attr_t *attr, int *detachstatep)
_GL_ARG_NONNULL ((1, 2)));
# endif
_GL_CXXALIAS_SYS (pthread_attr_getdetachstate, int,
- (pthread_attr_t *attr, int *detachstatep));
+ (const pthread_attr_t *attr, int *detachstatep));
# endif
_GL_CXXALIASWARN (pthread_attr_getdetachstate);
#elif defined GNULIB_POSIXCHECK