From fa9dda64932da5eec1b67eefafb3a03738bbc529 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Sat, 7 Mar 2015 00:36:02 +0000 Subject: [PATCH] soft-fp: Condition sfp-machine.h include path on __KERNEL__. My Linux kernel patch to update the kernel to current glibc soft-fp still leaves a few small differences between the two copies of soft-fp. I think it's desirable to avoid such differences completely if possible by having one set of sources suitable for use in both places. To that end, this patch introduces a conditional on __KERNEL__ for the path by which sfp-machine.h is included. Tested for powerpc-nofpu that installed stripped shared libraries are unchanged by this patch. * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include instead of . --- ChangeLog | 5 +++++ soft-fp/soft-fp.h | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 67780ac..eaccb2c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-03-06 Joseph Myers + + * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include + instead of . + 2015-03-06 Roland McGrath * manual/install.texi (Configuring and compiling): diff --git a/soft-fp/soft-fp.h b/soft-fp/soft-fp.h index d0171e3..db94e0b 100644 --- a/soft-fp/soft-fp.h +++ b/soft-fp/soft-fp.h @@ -34,6 +34,10 @@ #ifdef _LIBC # include +#elif defined __KERNEL__ +/* The Linux kernel uses names for architecture-specific + files. */ +# include #else # include "sfp-machine.h" #endif -- 2.7.4