test -e command for grub2

2006-06-13 Thread adrian15
I attach then new test.c for grub2. (I worked from Grub 1.94 version). It only implements the test -e feature. I haven't been able to check it. ./configure says something about a LZO version. 1) Why cat uses the file = grub_gzfile_open (args[0], 1); sentence to check if a file can be opened or n

Re: test -e command for grub2

2006-06-13 Thread Hollis Blanchard
On Tue, 2006-06-13 at 15:00 +0200, adrian15 wrote: > I attach then new test.c for grub2. (I worked from Grub 1.94 version). > > It only implements the test -e feature. > I haven't been able to check it. ./configure says something about a LZO > version. You haven't even compiled it? Perhaps you sh

Re: Patch for successful compilation on FreeBSD Release-6.1

2006-06-13 Thread Yoshinori K. Okuji
On Monday 12 June 2006 17:31, Harley D. Eades III wrote: > --- grub2/configure.ac Sun Jun 11 17:49:23 2006 > +++ grub2Hacked/configure.acSun 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], > +

Re: Patch for successful compilation on FreeBSD Release-6.1

2006-06-13 Thread Harley D. Eades III
"Yoshinori K. Okuji" <[EMAIL PROTECTED]> writes: > On Monday 12 June 2006 17:31, Harley D. Eades III wrote: > > --- grub2/configure.ac Sun Jun 11 17:49:23 2006 > > +++ grub2Hacked/configure.acSun Jun 11 17:55:34 2006 > > @@ -121,6 +121,15 @@ > > AC_CHECK_SIZEOF(void *) > > AC_CHECK_SIZEOF(l

Re: Patch for successful compilation on FreeBSD Release-6.1

2006-06-13 Thread Yoshinori K. Okuji
On Tuesday 13 June 2006 23:52, Harley D. Eades III wrote: > off_t is defined here on FreeBSD. I understand. > I am not adding the include. All I added was the #if statement so > this is not included on FreeBSD. So you are correct about the header > file not being used on FreeBSD, because it's n

Re: Patch for successful compilation on FreeBSD Release-6.1

2006-06-13 Thread Harley D. Eades III
"Yoshinori K. Okuji" <[EMAIL PROTECTED]> writes: > On Tuesday 13 June 2006 23:52, Harley D. Eades III wrote: > > off_t is defined here on FreeBSD. > > I understand. :) > > I am not adding the include. All I added was the #if statement so > > this is not included on FreeBSD. So you are correc

Re: Patch for successful compilation on FreeBSD Release-6.1

2006-06-13 Thread Harley D. Eades III
[EMAIL PROTECTED] (Harley D. Eades III) writes: > > > > You are right. I've checked in my own fix for this problem. Since recent > > FreeBSD supports posix_memalign, I think mine is a bit better. Can you > > confirm that this works on FreeBSD? Well your fix is better. It all works. __