openbsd-ports/devel/libgsf/patches/patch-thumbnailer_main_c

20 lines
548 B
Plaintext
Raw Normal View History

2011-12-18 08:54:29 -05:00
$OpenBSD: patch-thumbnailer_main_c,v 1.2 2011/12/18 13:54:29 ajacoutot Exp $
2011-12-16 03:10:05 -05:00
2011-12-18 08:54:29 -05:00
From 4bcf72e6b54a799304e5d42b80f3b89659394d51 Mon Sep 17 00:00:00 2001
From: Antoine Jacoutot <ajacoutot@openbsd.org>
Date: Fri, 16 Dec 2011 08:02:17 +0000
Subject: RLIMIT_AS may not be defined.
2011-12-16 03:10:05 -05:00
--- thumbnailer/main.c.orig Fri Dec 16 08:42:36 2011
+++ thumbnailer/main.c Fri Dec 16 08:50:00 2011
@@ -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