1 From a6547fc17c120dbd95b852f50b0c4bdee4fedb9a Mon Sep 17 00:00:00 2001
2 From: Khem Raj <raj.khem@gmail.com>
3 Date: Sat, 10 Jun 2017 01:20:32 -0700
4 Subject: [PATCH 6/6] pth_detached3.c: Dereference pthread_t before adding
8 error: invalid use of undefined type 'struct __pthread'
10 Upstream-Status: Pending
12 Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 drd/tests/pth_detached3.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
17 diff --git a/drd/tests/pth_detached3.c b/drd/tests/pth_detached3.c
18 index c02eef1..35d43a6 100644
19 --- a/drd/tests/pth_detached3.c
20 +++ b/drd/tests/pth_detached3.c
21 @@ -21,7 +21,7 @@ int main(int argc, char** argv)
22 pthread_detach(thread);
24 /* Invoke pthread_detach() with an invalid thread ID. */
25 - pthread_detach(thread + 8);
26 + pthread_detach((pthread_t*)(&thread + 8));
28 fprintf(stderr, "Finished.\n");