zsh-workers
 help / color / mirror / code / Atom feed
* rlim_t
@ 1997-05-03 22:19 Zefram
  1997-05-04  1:07 ` rlim_t Zoltan Hidvegi
  0 siblings, 1 reply; 2+ messages in thread
From: Zefram @ 1997-05-03 22:19 UTC (permalink / raw)
  To: zsh-workers

Zoltan's rlim_t patch contains:

+AC_CACHE_CHECK(for rlim_t, zsh_cv_type_rlim_t,
+[AC_TRY_COMPILE([
+#include <sys/types.h>
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif
+#include <sys/resource.h>],
+[rlim_t l;],
+zsh_cv_type_rlim_t=yes,
+zsh_cv_type_rlim_t=no)])
+if test $zsh_cv_type_rlim_t = no; then
+  AC_DEFINE_UNQUOTED(rlim_t, $DEFAULT_RLIM_T)
 fi

Shouldn't that be

AC_CHECK_TYPE(rlim_t, $DEFAULT_RLIM_T)

?  There are other similar type checks that should probably use
AC_CHECK_TYPE too.

-zefram


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: rlim_t
  1997-05-03 22:19 rlim_t Zefram
@ 1997-05-04  1:07 ` Zoltan Hidvegi
  0 siblings, 0 replies; 2+ messages in thread
From: Zoltan Hidvegi @ 1997-05-04  1:07 UTC (permalink / raw)
  To: Zefram; +Cc: zsh-workers

> Zoltan's rlim_t patch contains:
> 
> +AC_CACHE_CHECK(for rlim_t, zsh_cv_type_rlim_t,
> +[AC_TRY_COMPILE([
> +#include <sys/types.h>
> +#ifdef HAVE_SYS_TIME_H
> +#include <sys/time.h>
> +#endif
> +#include <sys/resource.h>],
> +[rlim_t l;],
> +zsh_cv_type_rlim_t=yes,
> +zsh_cv_type_rlim_t=no)])
> +if test $zsh_cv_type_rlim_t = no; then
> +  AC_DEFINE_UNQUOTED(rlim_t, $DEFAULT_RLIM_T)
>  fi
> 
> Shouldn't that be
> 
> AC_CHECK_TYPE(rlim_t, $DEFAULT_RLIM_T)

AC_CHECK_TYPE does not do shell expansion on the second argument.  Also:

 - Macro: AC_CHECK_TYPE (TYPE, DEFAULT)
     If the type TYPE is not defined in `sys/types.h', or `stdlib.h' or
     `stddef.h' if they exist, define it to be the C (or C++) builtin
     type DEFAULT; e.g., `short' or `unsigned'.

So this does not include sys/resource.h.

Zoli


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-05-04  1:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-05-03 22:19 rlim_t Zefram
1997-05-04  1:07 ` rlim_t 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).