9d814da0bb
- sync WANTLIB
13 lines
670 B
Plaintext
13 lines
670 B
Plaintext
$OpenBSD: patch-src_common_image_c,v 1.2 2011/04/16 00:15:37 sthen Exp $
|
|
--- src/common/image.c.orig Thu Sep 16 23:45:50 2010
|
|
+++ src/common/image.c Thu Sep 16 23:50:00 2010
|
|
@@ -884,7 +884,7 @@ int dt_image_alloc(dt_image_t *img, dt_image_buffer_t
|
|
dt_mipmap_cache_t *cache = darktable.mipmap_cache;
|
|
// max memory: user supplied number of bytes, evenly distributed among mip levels.
|
|
// clamped between 50MB -- 4GB
|
|
-#if defined(__APPLE__) || defined(__MACH__)
|
|
+#if defined(__APPLE__) || defined(__MACH__) || defined(__OpenBSD__)
|
|
// apple's size_t sucks
|
|
size_t max_mem = (size_t)(MAX(52428800, dt_conf_get_int("cache_memory"))/(float)DT_IMAGE_FULL);
|
|
#else
|