blob: 7eb60e86382b589fefd13572a1430d9e0db90d34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
$NetBSD: patch-liblrzip.c,v 1.1 2013/10/21 11:29:05 fhajny Exp $
fmemopen is also not available on SunOS.
--- liblrzip.c.orig 2013-09-01 14:41:11.000000000 +0000
+++ liblrzip.c
@@ -36,7 +36,7 @@
#include "lrzip_core.h"
#include "rzip.h"
-#if defined(__APPLE__) || defined(__FreeBSD__)
+#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__sun)
# define fmemopen(s, len, modes) fake_fmemopen((s), (len), (modes))
static FILE *fake_fmemopen(void *buf, size_t buflen, const char *mode)
{
|