Restore test for limits.h
PATCH 1/1 Restore test for limits.h
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 22:20:52 +0000 renamed from ChangeLog 2011-12-14 13:20:57 +0000 +4 -0
@@ -1,3 +1,7 @@ +2011-12-14 Mario Limonciello <[email protected]> + + * configure.ac: Add back in test for limits.h. + 2011-12-14 Vladimir Serbinenko <[email protected]> * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
=== modified file 'configure.ac'
configure.ac 2011-12-14 22:19:35 +0000 renamed from configure.ac 2011-11-12 18:18:42 +0000 +1 -1
@@ -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>
=== modified file 'ChangeLog'
ChangeLog +4 -0
@@ -1,3 +1,7 @@ +2011-12-14 Mario Limonciello <[email protected]> + + * configure.ac: Add back in test for limits.h. + 2011-12-14 Vladimir Serbinenko <[email protected]> * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
=== modified file 'configure.ac'
configure.ac +1 -1
@@ -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>
ChangeLog 2011-12-14 22:20:52 +0000 line 4
Quoted 4 lines · Mario Limonciello
+2011-12-14 Mario Limonciello<[email protected]>
ChangeLog 2011-12-14 22:20:52 +0000 renamed from ChangeLog 2011-12-14 13:20:57 +0000 +3
-0+ + * configure.ac: Add back in test for limits.h. +
Applied, thanks. Sorry for the delay
Signature · 2 lines
Regards Vladimir 'φ-coder/phcoder' Serbinenko