* patch for RLIM size in configure.in
@ 1997-01-08 4:18 gwing
1997-01-08 12:43 ` Zoltan Hidvegi
0 siblings, 1 reply; 2+ messages in thread
From: gwing @ 1997-01-08 4:18 UTC (permalink / raw)
To: zsh-workers; +Cc: Zoltan Hidvegi
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"
*** configure.in.org Wed Jan 8 15:11:31 1997
--- configure.in Wed Jan 8 15:11:31 1997
***************
*** 526,531 ****
--- 526,532 ----
AC_CACHE_CHECK(if rlim_t is quad_t,
zsh_cv_rlim_t_is_quad_t,
[AC_TRY_RUN([
+ #include <sys/time.h>
#include <sys/resource.h>
main(){struct rlimit r;exit(sizeof(r.rlim_cur) <= sizeof(long));}],
zsh_cv_rlim_t_is_quad_t=yes,
--
Geoff Wing [gwing@primenet.com.au] Technical Manager
Phone : +61-3-9818 2977 PrimeNet - Internet Consultancy
Facsimile: +61-3-9819 3788 Web : <URL:http://www.primenet.com.au/>
Mobile : 0412 162 441
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: patch for RLIM size in configure.in
1997-01-08 4:18 patch for RLIM size in configure.in gwing
@ 1997-01-08 12:43 ` Zoltan Hidvegi
0 siblings, 0 replies; 2+ messages in thread
From: Zoltan Hidvegi @ 1997-01-08 12:43 UTC (permalink / raw)
To: gwing; +Cc: zsh-workers
gwing@primenet.com.au 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,
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1997-01-08 13:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-01-08 4:18 patch for RLIM size in configure.in gwing
1997-01-08 12:43 ` Zoltan Hidvegi
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).