grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
From: Mario Limonciello <mario_limonciello@dell.com>
To: "grub-devel@gnu.org" <grub-devel@gnu.org>
Subject: [PATCH] Restore test for limits.h
Date: Wed, 14 Dec 2011 17:26:58 -0500	[thread overview]
Message-ID: <4EE922B2.6060002@dell.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1215 bytes --]

Hello,

I've noticed that a freshly autogened checkout of bzr will not test for limits.h and consequently doesn't compile with HAVE_LIMITS_H.  This was removed in bzr r2566.  HAVE_LIMITS_H is still used in util/getroot.c and grub-core/kern/emu-misc.c.

This patch restores that functionality:

=== modified file 'ChangeLog'
--- ChangeLog    2011-12-14 13:20:57 +0000
+++ ChangeLog    2011-12-14 22:20:52 +0000
@@ -1,3 +1,7 @@
+2011-12-14  Mario Limonciello <mario_limonciello@dell.com>
+
+    * configure.ac: Add back in test for limits.h.
+
  2011-12-14  Vladimir Serbinenko <phcoder@gmail.com>

      * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into

=== modified file 'configure.ac'
--- configure.ac    2011-11-12 18:18:42 +0000
+++ configure.ac    2011-12-14 22:19:35 +0000
@@ -298,7 +298,7 @@

  # Check for functions and headers.
  AC_CHECK_FUNCS(posix_memalign memalign asprintf vasprintf getextmntent)
-AC_CHECK_HEADERS(libzfs.h libnvpair.h sys/param.h sys/mount.h sys/mnttab.h sys/mkdev.h)
+AC_CHECK_HEADERS(libzfs.h libnvpair.h sys/param.h sys/mount.h sys/mnttab.h sys/mkdev.h limits.h)

  AC_CHECK_MEMBERS([struct statfs.f_fstypename],,,[$ac_includes_default
  #include <sys/param.h>



[-- Attachment #2: limits_test.patch --]
[-- Type: text/x-diff, Size: 900 bytes --]

=== modified file 'ChangeLog'
--- ChangeLog	2011-12-14 13:20:57 +0000
+++ ChangeLog	2011-12-14 22:20:52 +0000
@@ -1,3 +1,7 @@
+2011-12-14  Mario Limonciello <mario_limonciello@dell.com>
+
+	* configure.ac: Add back in test for limits.h.
+
 2011-12-14  Vladimir Serbinenko  <phcoder@gmail.com>
 
 	* grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into

=== modified file 'configure.ac'
--- configure.ac	2011-11-12 18:18:42 +0000
+++ configure.ac	2011-12-14 22:19:35 +0000
@@ -298,7 +298,7 @@
 
 # Check for functions and headers.
 AC_CHECK_FUNCS(posix_memalign memalign asprintf vasprintf getextmntent)
-AC_CHECK_HEADERS(libzfs.h libnvpair.h sys/param.h sys/mount.h sys/mnttab.h sys/mkdev.h)
+AC_CHECK_HEADERS(libzfs.h libnvpair.h sys/param.h sys/mount.h sys/mnttab.h sys/mkdev.h limits.h)
 
 AC_CHECK_MEMBERS([struct statfs.f_fstypename],,,[$ac_includes_default
 #include <sys/param.h>


             reply	other threads:[~2011-12-14 22:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-14 22:26 Mario Limonciello [this message]
2012-01-22 15:48 ` [PATCH] Restore test for limits.h Vladimir 'φ-coder/phcoder' Serbinenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EE922B2.6060002@dell.com \
    --to=mario_limonciello@dell.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).