diff --git a/newlib/libc/include/setjmp.h b/newlib/libc/include/setjmp.h
index a2830b275..9e9138162 100644
--- a/newlib/libc/include/setjmp.h
+++ b/newlib/libc/include/setjmp.h
@@ -11,13 +11,17 @@
 
 _BEGIN_STD_C
 
-#ifdef __GNUC__
 void	longjmp (jmp_buf __jmpb, int __retval)
-			__attribute__ ((__noreturn__));
-#else
-void	longjmp (jmp_buf __jmpb, int __retval);
+#ifdef __GNUC__
+		__attribute__ ((__noreturn__))
+#endif
+	;
+
+int	setjmp (jmp_buf __jmpb)
+#ifdef __GNUC__
+		__attribute__ ((returns_twice))
 #endif
-int	setjmp (jmp_buf __jmpb);
+	;
 
 _END_STD_C
 
