Browse Source

Use __typeof for __libc*longjmp

Peter S. Mazinger 19 years ago
parent
commit
4a2cd146df
1 changed files with 2 additions and 5 deletions
  1. 2 5
      libpthread/linuxthreads.old/ptlongjmp.c

+ 2 - 5
libpthread/linuxthreads.old/ptlongjmp.c

@@ -21,11 +21,8 @@
 
 /* These functions are not declared anywhere since they shouldn't be
    used at another place but here.  */
-extern void __libc_siglongjmp (sigjmp_buf env, int val)
-     __attribute__ ((noreturn));
-extern void __libc_longjmp (sigjmp_buf env, int val)
-     __attribute__ ((noreturn));
-
+extern __typeof(siglongjmp) __libc_siglongjmp;
+extern __typeof(longjmp) __libc_longjmp;
 
 static void pthread_cleanup_upto(__jmp_buf target)
 {