Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: patch for RLIM size in configure.in



gwing@xxxxxxxxxxxxxxx wrote:
> Heyla,
> my system (NetBSD) needs this patch to correctly determine the size of
> RLIM_T . You need to run autoconf after applying to regenerate "configure"

A better patch included below.  Use this instead of Geoff's.

Zoltan


*** configure.in	1997/01/06 20:41:03	3.1.1.6
--- configure.in	1997/01/08 12:34:05
***************
*** 555,560 ****
--- 555,563 ----
  AC_CACHE_CHECK(if rlim_t is quad_t,
  zsh_cv_rlim_t_is_quad_t,
  [AC_TRY_RUN([
+ #ifdef HAVE_SYS_TIME_H
+ #include <sys/time.h>
+ #endif
  #include <sys/resource.h>
  main(){struct rlimit r;exit(sizeof(r.rlim_cur) <= sizeof(long));}],
  zsh_cv_rlim_t_is_quad_t=yes,
***************
*** 565,571 ****
  else
    AC_CACHE_CHECK(if the rlim_t is unsigned,
    zsh_cv_type_rlim_t_is_unsigned,
!   [AC_TRY_RUN([#include <sys/resource.h>
    main(){struct rlimit r;r.rlim_cur=-1;exit(r.rlim_cur<0);}],
    zsh_cv_type_rlim_t_is_unsigned=yes,
    zsh_cv_type_rlim_t_is_unsigned=no,
--- 568,578 ----
  else
    AC_CACHE_CHECK(if the rlim_t is unsigned,
    zsh_cv_type_rlim_t_is_unsigned,
!   [AC_TRY_RUN([
! #ifdef HAVE_SYS_TIME_H
! #include <sys/time.h>
! #endif
! #include <sys/resource.h>
    main(){struct rlimit r;r.rlim_cur=-1;exit(r.rlim_cur<0);}],
    zsh_cv_type_rlim_t_is_unsigned=yes,
    zsh_cv_type_rlim_t_is_unsigned=no,



Messages sorted by: Reverse Date, Date, Thread, Author