[libgsf] RLIMIT_AS may not be defined.



commit 4bcf72e6b54a799304e5d42b80f3b89659394d51
Author: Antoine Jacoutot <ajacoutot openbsd org>
Date:   Fri Dec 16 09:02:17 2011 +0100

    RLIMIT_AS may not be defined.
    
    On some systems (e.g. OpenBSD), RLIMIT_AS is not defined. The prefered
    way to workaround this is to use RLIMIT_DATA which is the closest match.

 thumbnailer/main.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/thumbnailer/main.c b/thumbnailer/main.c
index 693a5a9..4b32753 100644
--- a/thumbnailer/main.c
+++ b/thumbnailer/main.c
@@ -40,6 +40,9 @@
 
 #ifdef HAVE_SETRLIMIT
 #include <sys/resource.h>
+#if !defined(RLIMIT_AS)
+#define RLIMIT_AS	RLIMIT_DATA
+#endif
 #endif
 
 G_GNUC_NORETURN static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]