From: "Yoshinori K. Okuji" <okuji@enbug.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Patch for successful compilation on FreeBSD Release-6.1
Date: Tue, 13 Jun 2006 20:01:33 +0200 [thread overview]
Message-ID: <200606132001.34248.okuji@enbug.org> (raw)
In-Reply-To: <868xo2tmpl.fsf@baz.foobar-qux.org>
On Monday 12 June 2006 17:31, Harley D. Eades III wrote:
> --- grub2/configure.ac Sun Jun 11 17:49:23 2006
> +++ grub2Hacked/configure.ac Sun Jun 11 17:55:34 2006
> @@ -121,6 +121,15 @@
> AC_CHECK_SIZEOF(void *)
> AC_CHECK_SIZEOF(long)
>
> +# BSD checks.
> +AC_CHECK_HEADER([malloc.h],
> + [AC_DEFINE(HAVE_MALLOC_H, [],
> + [Define to 1 if you have the malloc.h header file.])],
> ,)
> +
Please use AC_CHECK_HEADERS instead. Usually, you don't have to use
AC_CHECK_HEADER. See the autoconf manual for more details.
> +AC_CHECK_FUNC([memalign],
> + [AC_DEFINE(HAVE_MEMALIGN, [],
> + [Define to 1 if you have the memalign function.])], ,)
> +
Likewise, please use AC_CHECK_FUNCS instead.
> --- grub2/include/grub/util/misc.h Mon Feb 14 18:07:01 2005
> +++ grub2Hacked/include/grub/util/misc.h Mon Jun 5 15:25:38
> 2006
> @@ -23,6 +23,7 @@
> #include <stdlib.h>
> #include <stdio.h>
> #include <setjmp.h>
> +#include <unistd.h>
Can you tell me why it is necessary to include unistd.h here?
> --- grub2/util/grub-emu.c Wed Apr 26 16:58:36 2006
> +++ grub2Hacked/util/grub-emu.c Mon Jun 5 15:26:30 2006
> @@ -18,7 +18,11 @@
> */
>
> #include <stdlib.h>
> +
> +#ifdef HAVE_MALLOC_H
> #include <malloc.h>
> +#endif
> +
I don't know why it is necessary to include malloc.h. IIRC, FreeBSD does not
use malloc.h since 4.2 or something. In fact, other projects, such as KDE,
stop including malloc.h in all platforms. Can you elaborate on this change?
Thanks,
Okuji
next prev parent reply other threads:[~2006-06-13 18:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-11 15:28 Patch for successful compilation on FreeBSD Release-6.1 Harley D. Eades III
2006-06-11 19:10 ` Jeroen Dekkers
2006-06-11 19:27 ` Harley D. Eades III
2006-06-12 15:31 ` Harley D. Eades III
2006-06-12 16:39 ` Marco Gerards
2006-06-13 18:01 ` Yoshinori K. Okuji [this message]
2006-06-13 21:52 ` Harley D. Eades III
2006-06-13 22:53 ` Yoshinori K. Okuji
2006-06-14 1:23 ` Harley D. Eades III
2006-06-14 1:46 ` Harley D. Eades III
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=200606132001.34248.okuji@enbug.org \
--to=okuji@enbug.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.