فهرست منبع

grub: revert r21974 (features.h should never be included explicitly)

features.h (or something including it) is needed for __UCLIBC* to get
defined - E.G. without that the build breaks without largefile support.

Nigel, what was the reason for your commit and what file not found error
did you see?
Peter Korsgaard 16 سال پیش
والد
کامیت
c4cd1bcb84
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      target/x86/grub/grub.300-honor_UCLIBC_HAS_LFS.patch

+ 2 - 2
target/x86/grub/grub.300-honor_UCLIBC_HAS_LFS.patch

@@ -5,7 +5,7 @@ diff -rup grub-0.97.orig/grub/asmstub.c grub-0.97/grub/asmstub.c
   *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
   *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
   */
   */
  
  
-+/* #include <features.h> - NK */
++#include <features.h>
 +#if !defined __UCLIBC__ || (defined __UCLIBC__ && defined __UCLIBC_HAS_LFS__)
 +#if !defined __UCLIBC__ || (defined __UCLIBC__ && defined __UCLIBC_HAS_LFS__)
  /* Try to use glibc's transparant LFS support. */
  /* Try to use glibc's transparant LFS support. */
  #define _LARGEFILE_SOURCE	1
  #define _LARGEFILE_SOURCE	1
@@ -22,7 +22,7 @@ diff -rup grub-0.97.orig/lib/device.c grub-0.97/lib/device.c
   *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
   *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
   */
   */
  
  
-+/* #include <features.h> - NK */
++#include <features.h>
 +#if !defined __UCLIBC__ || (defined __UCLIBC__ && defined __UCLIBC_HAS_LFS__)
 +#if !defined __UCLIBC__ || (defined __UCLIBC__ && defined __UCLIBC_HAS_LFS__)
  /* Try to use glibc's transparant LFS support. */
  /* Try to use glibc's transparant LFS support. */
  #define _LARGEFILE_SOURCE       1
  #define _LARGEFILE_SOURCE       1