[PATCH] urxvtd, getopt and mlock
Emanuele Giaquinta
emanuele.giaquinta at gmail.com
Sat Jan 24 18:53:06 CET 2009
On Thu, Jan 22, 2009 at 04:02:38PM -0500, Russell Harmon wrote:
> +if test x$support_mlock = xyes; then
> + dnl# glibc versions < 2.5.20 don't work with mlockall
> + AC_CACHE_CHECK([for glibc >= 2.5], rxvt_mlock,
> + [AC_RUN_IFELSE([
> + AC_LANG_PROGRAM([
> +#include <stdlib.h>
> + ],[
> +#if ! ( ( defined(__GLIBC__) && defined(__GLIBC_MINOR__) ) && (
> __GLIBC__ > 2 || ( __GLIBC__ == 2 && __GLIBC_MINOR__ >= 5 ) ) )
> + return 1;
> +#endif
> + ])],
> + [],[support_mlock=no]
> + )])
> +fi
Doesn't this check prevent mlockall to be enabled on non glibc systems?
Emanuele
More information about the rxvt-unicode
mailing list