summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/exit-thread.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2015-05-26 12:57:15 -0700
committerRoland McGrath <roland@hack.frob.com>2015-05-26 12:57:15 -0700
commit7be88c1bf860f4197e3ffac486515d6f1b38c666 (patch)
tree71b8316f4b2dd2ba296f9ddfd00fa2735e05dd95 /sysdeps/unix/sysv/linux/exit-thread.h
parent6afb9c0175006c8060928537842364f83df6fc15 (diff)
downloadglibc-7be88c1bf860f4197e3ffac486515d6f1b38c666.tar.gz
Diffstat (limited to 'sysdeps/unix/sysv/linux/exit-thread.h')
-rw-r--r--sysdeps/unix/sysv/linux/exit-thread.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/exit-thread.h b/sysdeps/unix/sysv/linux/exit-thread.h
index e5392f7122..c34269514b 100644
--- a/sysdeps/unix/sysv/linux/exit-thread.h
+++ b/sysdeps/unix/sysv/linux/exit-thread.h
@@ -16,6 +16,7 @@
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
+#include <stdbool.h>
#include <sysdep.h>
/* This causes the current thread to exit, without affecting other
@@ -23,7 +24,7 @@
threads left, then this has the effect of _exit (0). */
static inline void __attribute__ ((noreturn, always_inline, unused))
-__exit_thread (void)
+__exit_thread (bool detached __attribute__ ((unused)))
{
/* Doing this in a loop is mostly just to satisfy the compiler that the
function really qualifies as noreturn. It also means that in some