about summary refs log tree commit diff stats
path: root/src/wrapped/wrappedlibpthread_private.h
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-04-12 14:29:38 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-04-12 14:29:38 +0200
commit88798b78fcfef6128480d95c35f3a6970403eb34 (patch)
tree08471705134a5b0dddfb3d6798a340e2ed6116ad /src/wrapped/wrappedlibpthread_private.h
parent0ce7390ac1fa5221f47b954ae954586de7df13ab (diff)
downloadbox64-88798b78fcfef6128480d95c35f3a6970403eb34.tar.gz
box64-88798b78fcfef6128480d95c35f3a6970403eb34.zip
Improved pthread wrapping
Diffstat (limited to 'src/wrapped/wrappedlibpthread_private.h')
-rwxr-xr-xsrc/wrapped/wrappedlibpthread_private.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/wrapped/wrappedlibpthread_private.h b/src/wrapped/wrappedlibpthread_private.h
index 4b36d306..ca0202b0 100755
--- a/src/wrapped/wrappedlibpthread_private.h
+++ b/src/wrapped/wrappedlibpthread_private.h
@@ -62,12 +62,23 @@ GOM(pthread_attr_setstackaddr, iFEpp)
 #endif
 GOM(pthread_attr_setstack, iFEppL)
 GOM(pthread_attr_setstacksize, iFEpL)
+#ifdef NOALIGN
 GO(pthread_barrierattr_destroy, iFp)
 GO(pthread_barrierattr_getpshared, iFpp)
 GO(pthread_barrierattr_init, iFp)
 GO(pthread_barrierattr_setpshared, iFpi)
+#else
+GOM(pthread_barrierattr_destroy, iFEp)
+GOM(pthread_barrierattr_getpshared, iFEpp)
+GOM(pthread_barrierattr_init, iFEp)
+GOM(pthread_barrierattr_setpshared, iFEpi)
+#endif
 GO(pthread_barrier_destroy, iFp)
+#ifdef NOALIGN
 GO(pthread_barrier_init, iFppu)
+#else
+GOM(pthread_barrier_init, iFEppu)
+#endif
 GO(pthread_barrier_wait, iFp)
 GO(pthread_cancel, iFL)
 GOM(_pthread_cleanup_pop, vFEpi)