Re: Devel glibc, -D_FORTIFY_SOURCE=2 and zzuf

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

 



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
--- 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;
 }
-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux