$OpenBSD: patch-ECtools_zarafa-indexer_ECLuceneIndexerAttachment_cpp,v 1.2 2011/06/02 12:46:37 ajacoutot Exp $

OpenBSD does not have RLIMIT_AS.

--- ECtools/zarafa-indexer/ECLuceneIndexerAttachment.cpp.orig	Wed Apr 20 19:51:46 2011
+++ ECtools/zarafa-indexer/ECLuceneIndexerAttachment.cpp	Mon May  2 12:47:51 2011
@@ -76,6 +76,10 @@
 
 #define STREAM_BUFFER   ( 64*1024 )
 
+#if defined(__OpenBSD__) && !defined(RLIMIT_AS)
+#define RLIMIT_AS	RLIMIT_DATA
+#endif
+
 ECLuceneIndexerAttachment::ECLuceneIndexerAttachment(ECThreadData *lpThreadData, ECLuceneIndexer *lpIndexer)
 {
 	NShttpmail_t *lpField;
