Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: patch for RLIM size in configure.in
- X-seq: zsh-workers 2747
- From: Zoltan Hidvegi <hzoli@xxxxxxxxxx>
- To: gwing@xxxxxxxxxxxxxxx
- Subject: Re: patch for RLIM size in configure.in
- Date: Wed, 8 Jan 1997 13:43:10 +0100 (MET)
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <19970108041829.13748.qmail@xxxxxxxxxxxxxxx> from "gwing@xxxxxxxxxxxxxxx" at "Jan 8, 97 03:18:29 pm"
- Organization: Dept. of Comp. Sci., Eotvos University, Budapest, Hungary
- Phone: (36 1)2669833 ext: 2667, home phone: (36 1) 2752368
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