$OpenBSD: patch-ECtools_zarafa-indexer_ECLuceneIndexerAttachment_cpp,v 1.3 2012/05/05 16:56:17 ajacoutot Exp $

OpenBSD does not have RLIMIT_AS.

--- ECtools/zarafa-indexer/ECLuceneIndexerAttachment.cpp.orig	Thu May  3 16:37:10 2012
+++ ECtools/zarafa-indexer/ECLuceneIndexerAttachment.cpp	Sat May  5 17:39:39 2012
@@ -77,6 +77,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;
