This prevents configure from believing that -nostdinc -isystem
works in some cases where it doesn't (NetBSD with non-native
gcc 4.4).

The patch simply adds the requirement that #include <stddef.h>
works with -nostdinc -isystem.

Grégoire
--- configure.ac.orig   2012-07-28 17:41:28.000000000 +0000
+++ configure.ac
@@ -717,6 +717,7 @@ AC_CACHE_CHECK([whether -nostdinc -isyst
   SAVED_CPPFLAGS="$CPPFLAGS"
   CPPFLAGS="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC 
-print-file-name=include`"
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdarg.h>
+#include <stddef.h>
 int va_arg_func (int fixed, va_list args);]], [[]])],
       [grub_cv_cc_isystem=yes],
       [grub_cv_cc_isystem=no])
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to