Sean Boudreau wrote:

> Hi:
> 
> vim-7.1
> 
> I had to make the following change to explicitly bring in
> <sys/types.h> for the test for mode_t to work.  I tried
> under NetBSD for comparison and on that platform
> <sys/types.h> happens to be brought in by either <stdlib.h>
> or <unistd.h> but that's not standard.
> 
> Regards,
> 
> -seanb
> 
> > 
> 
> --y0ulUmNC+osPPQO6
> Content-Type: text/plain
> Content-Disposition: inline;
>       filename="diff"
> 
> --- auto/configure.orig       2007-05-12 07:49:09.000000000 -0400
> +++ auto/configure    2007-10-26 10:55:44.000000000 -0400
> @@ -10264,7 +10264,7 @@
>  
>  
>  for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
> -     termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \
> +     termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
>       iconv.h langinfo.h unistd.h stropts.h errno.h \
>       sys/resource.h sys/systeminfo.h locale.h \
>       sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \

I think it already works OK on most platforms.  But it certainly doesn't
hurt to explicitly add sys/types.h here.  In src/configure.in, that is.

Thanks for the patch.

-- 
The future isn't what it used to be.

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui