[dovecot-cvs] dovecot acconfig.h,1.18,1.19 configure.in,1.65,1.66
cras at procontrol.fi
cras at procontrol.fi
Sun Dec 1 23:18:01 EET 2002
Update of /home/cvs/dovecot
In directory danu:/tmp/cvs-serv15297
Modified Files:
acconfig.h configure.in
Log Message:
RLIMIT_AS isn't supported everywhere - use it if it exists, but also use
RLIMIT_DATA.
Index: acconfig.h
===================================================================
RCS file: /home/cvs/dovecot/acconfig.h,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- acconfig.h 26 Nov 2002 20:55:44 -0000 1.18
+++ acconfig.h 1 Dec 2002 21:17:59 -0000 1.19
@@ -24,6 +24,9 @@
/* Define if your dev_t is a structure instead of integer type */
#undef DEV_T_STRUCT
+/* Define if you have RLIMIT_AS for setrlimit() */
+#undef HAVE_RLIMIT_AS
+
#undef USERINFO_PASSWD
#undef USERINFO_PASSWD_FILE
#undef USERINFO_SHADOW
Index: configure.in
===================================================================
RCS file: /home/cvs/dovecot/configure.in,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- configure.in 1 Dec 2002 17:08:57 -0000 1.65
+++ configure.in 1 Dec 2002 21:17:59 -0000 1.66
@@ -408,6 +408,18 @@
fi
])
+dnl * Do we have RLIMIT_AS?
+AC_TRY_COMPILE([
+ #include <sys/types.h>
+ #include <sys/time.h>
+ #include <sys/resource.h>
+], [
+ struct rlimit r;
+ getrlimit(RLIMIT_AS, &r);
+], [
+ AC_DEFINE(HAVE_RLIMIT_AS)
+])
+
dnl * Linux compatible mremap()
AC_MSG_CHECKING([Linux compatible mremap()])
AC_TRY_COMPILE([
More information about the dovecot-cvs
mailing list