summaryrefslogtreecommitdiff
path: root/lib/pthread.in.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-11-21 11:44:10 +0100
committerBruno Haible <bruno@clisp.org>2019-11-21 11:44:10 +0100
commit5652992e666d0cdcf89112d5c212c1792514402e (patch)
treece659910ffebf49c6b0a553c83f413af3b63ca53 /lib/pthread.in.h
parentd9803384537f7ec04a7a9aa8641677dc3eab6a3c (diff)
downloadgnulib-5652992e666d0cdcf89112d5c212c1792514402e.tar.gz
Fix various errors in _GL_CXXALIAS_SYS invocations.
* lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS. * lib/pthread.in.h (pthread_mutexattr_gettype, pthread_mutexattr_getrobust): Likewise. * lib/stdlib.in.h (srandom, initstate, setstate): Likewise. * lib/sys_socket.in.h (recv, send): Likewise. * lib/unistd.in.h (getdtablesize): Likewise. * lib/sys_select.in.h (select): In C++, write 'timeval' instead of 'struct timeval'.
Diffstat (limited to 'lib/pthread.in.h')
-rw-r--r--lib/pthread.in.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/pthread.in.h b/lib/pthread.in.h
index 9c0a422342..3a379d0780 100644
--- a/lib/pthread.in.h
+++ b/lib/pthread.in.h
@@ -804,8 +804,10 @@ _GL_FUNCDECL_SYS (pthread_mutexattr_gettype, int,
(const pthread_mutexattr_t *attr, int *typep)
_GL_ARG_NONNULL ((1, 2)));
# endif
-_GL_CXXALIAS_SYS (pthread_mutexattr_gettype, int,
- (const pthread_mutexattr_t *attr, int *typep));
+/* Need to cast, because on FreeBSD the first parameter is
+ pthread_mutexattr_t *attr. */
+_GL_CXXALIAS_SYS_CAST (pthread_mutexattr_gettype, int,
+ (const pthread_mutexattr_t *attr, int *typep));
# endif
_GL_CXXALIASWARN (pthread_mutexattr_gettype);
#elif defined GNULIB_POSIXCHECK
@@ -860,8 +862,10 @@ _GL_FUNCDECL_SYS (pthread_mutexattr_getrobust, int,
(const pthread_mutexattr_t *attr, int *robustp)
_GL_ARG_NONNULL ((1, 2)));
# endif
-_GL_CXXALIAS_SYS (pthread_mutexattr_getrobust, int,
- (const pthread_mutexattr_t *attr, int *robustp));
+/* Need to cast, because on FreeBSD the first parameter is
+ pthread_mutexattr_t *attr. */
+_GL_CXXALIAS_SYS_CAST (pthread_mutexattr_getrobust, int,
+ (const pthread_mutexattr_t *attr, int *robustp));
# endif
_GL_CXXALIASWARN (pthread_mutexattr_getrobust);
#elif defined GNULIB_POSIXCHECK