[tracker/tracker-0.6] Fixes: #579047, fix compilation if RLIMIT_AS isn't defined



commit b106044f5f5a06dbc1be6cdb777352afaae90237
Author: Jasper Lievisse Adriaanse <jasper humppa nl>
Date:   Wed Apr 15 16:22:36 2009 +0100

    Fixes: #579047, fix compilation if RLIMIT_AS isn't defined
---
 src/libtracker-common/tracker-os-dependant-unix.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/libtracker-common/tracker-os-dependant-unix.c b/src/libtracker-common/tracker-os-dependant-unix.c
index e77c107..cdbc282 100644
--- a/src/libtracker-common/tracker-os-dependant-unix.c
+++ b/src/libtracker-common/tracker-os-dependant-unix.c
@@ -35,6 +35,10 @@
 
 #define DISABLE_MEM_LIMITS
 
+#if defined(__OpenBSD__) && !defined(RLIMIT_AS)
+#define RLIMIT_AS      RLIMIT_DATA
+#endif
+
 gboolean
 tracker_spawn (gchar **argv,
 	       gint    timeout,



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