From b5c7cef0e65aa1471292449e40ab48f97419fb86 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Wed, 30 Sep 2009 20:27:08 +0200 Subject: [PATCH] glibc: fixed -Os patch to allow sys/stat.h users to compile --- base/glibc/allow_Os.patch | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/base/glibc/allow_Os.patch b/base/glibc/allow_Os.patch index 4c4d9f0e4..a703c802b 100644 --- a/base/glibc/allow_Os.patch +++ b/base/glibc/allow_Os.patch @@ -20,19 +20,18 @@ objdir-x86_64-unknown-linux-gnu/libc_pic.os: In function `faccessat': (.text+0x7fad9): undefined reference to `fstatat64' collect2: ld returned 1 exit status -=================================================================== -RCS file: /cvs/glibc/libc/io/sys/stat.h,v -retrieving revision 1.57 -retrieving revision 1.56 -diff -u -r1.57 -r1.56 -+++ libc/io/sys/stat.h 2007/09/15 02:27:07 1.57 ---- libc/io/sys/stat.h 2007/05/10 23:01:02 1.56 -@@ -444,7 +444,7 @@ +--- ./io/sys/stat.h.orig 2009-09-30 19:04:20.000000000 +0200 ++++ ./io/sys/stat.h 2009-09-30 19:06:15.000000000 +0200 +@@ -444,7 +444,11 @@ __mode_t __mode, __dev_t *__dev) __THROW __nonnull ((3, 5)); -#if defined __GNUC__ && __GNUC__ >= 2 && defined __USE_EXTERN_INLINES +#if defined __GNUC__ && __GNUC__ >= 2 ++# ifndef __extern_inline ++# define __extern_inline extern inline ++# endif ++ /* Inlined versions of the real stat and mknod functions. */ __extern_inline int