[PATCH] Fix <sys/stat.h> in C++
Jakub Jelinek
jakub@redhat.com
Tue Nov 15 19:51:00 GMT 2005
Hi!
While in C __REDIRECT_NTH (....) __THROW is harmless, in C++ it is
an error (... throw () __asm ("fstatat64") throw () ... ).
2005-11-15 Jakub Jelinek <jakub@redhat.com>
* io/sys/stat.h (fstatat): Don't use __THROW together with
__REDIRECT_NTH.
--- libc/io/sys/stat.h.jj 2005-11-15 20:29:54.000000000 +0100
+++ libc/io/sys/stat.h 2005-11-15 20:46:40.000000000 +0100
@@ -238,7 +238,7 @@ extern int fstatat (int __fd, const char
# else
extern int __REDIRECT_NTH (fstatat, (int __fd, const char *__file,
struct stat *__buf, int __flag),
- fstatat64) __THROW __nonnull ((2, 3));
+ fstatat64) __nonnull ((2, 3));
# endif
extern int fstatat64 (int __fd, const char *__file, struct stat64 *__buf,
Jakub
More information about the Libc-hacker
mailing list