[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] Fix pthread_self declaration so that it works with G++



g++ apparently doesn't like the order of __THROW and __attribute__.


diff --exclude-from=/home/ldb/src/linux-exclude -urNdp nptl-0.6/nptl/sysdeps/pthread/pthread.h nptl_ldb/sysdeps/pthread/pthread.h
--- nptl-0.6/nptl/sysdeps/pthread/pthread.h	2002-10-08 00:11:10.000000000 +0200
+++ nptl_ldb/sysdeps/pthread/pthread.h	2002-11-15 21:23:42.000000000 +0100
@@ -197,7 +197,7 @@ extern int pthread_detach (pthread_t __t


 /* Obtain the identifier of the current thread.  */
-extern pthread_t pthread_self (void) __attribute__ ((__const__)) __THROW;
+extern pthread_t pthread_self (void) __THROW __attribute__ ((__const__));

 /* Compare two thread identifiers.  */
 extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) __THROW;


Attachment: signature.asc
Description: This is a digitally signed message part


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]