From 4b8ca0cba45b88803f99b9d91d2a8c7ec7f9f46d Mon Sep 17 00:00:00 2001 From: rpj Date: Fri, 1 Apr 2005 09:13:32 +0000 Subject: '' --- tests/self1.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/self1.c') diff --git a/tests/self1.c b/tests/self1.c index 773aee1..59498d9 100644 --- a/tests/self1.c +++ b/tests/self1.c @@ -54,9 +54,16 @@ main(int argc, char * argv[]) */ pthread_t self; +#ifdef PTW32_STATIC_LIB + pthread_win32_process_attach_np(); +#endif + self = pthread_self(); assert(self.p != NULL); +#ifdef PTW32_STATIC_LIB + pthread_win32_process_detach_np(); +#endif return 0; } -- cgit v1.2.3