Devel glibc, -D_FORTIFY_SOURCE=2 and zzuf
Jan Kratochvil
jan.kratochvil at redhat.com
Sun Aug 19 18:48:26 UTC 2007
Hi,
On Sun, 19 Aug 2007 18:20:29 +0200, Ville Skyttä wrote:
...
> zzuf's build fails due to the open-is-a-function-like-macro changes in devel
> glibc.
the fix is something like the attached patch, please tune the details yourself.
You need to avoid the macro expansion and parentheses are harmless.
The glibc change still should be POSIX compliant:
http://sources.redhat.com/ml/gdb-patches/2007-08/msg00165.html
Regards,
Jan
-------------- next part --------------
--- zzuf-0.9-orig/src/lib-fd.c 2007-07-06 15:40:55.000000000 +0200
+++ zzuf-0.9/src/lib-fd.c 2007-08-19 20:44:04.000000000 +0200
@@ -148,13 +148,13 @@ static int (*ORIG(close)) (int fd)
} \
} while(0)
-int NEW(open)(const char *file, int oflag, ...)
+int (NEW(open))(const char *file, int oflag, ...)
{
int ret; OPEN(open); return ret;
}
#if defined HAVE_OPEN64
-int NEW(open64)(const char *file, int oflag, ...)
+int (NEW(open64))(const char *file, int oflag, ...)
{
int ret; OPEN(open64); return ret;
}
More information about the fedora-devel-list
mailing list