blob: b1dceb8652c321427a0cfc33a3b1a8f0f34e1280 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
$NetBSD: patch-aa,v 1.6 2014/08/21 04:48:52 dbj Exp $
--- lib/ofx_preproc.cpp.orig 2008-12-06 17:22:57.000000000 -0500
+++ lib/ofx_preproc.cpp 2010-05-18 19:03:57.000000000 -0400
@@ -22,6 +22,7 @@
#include <fstream>
#include <stdlib.h>
#include <stdio.h>
+#include <unistd.h>
#include <string>
#include "ParserEventGeneratorKit.h"
#include "libofx.h"
@@ -185,7 +186,7 @@ CFCT int ofx_proc_file(LibofxContextPtr
memset(iconv_buffer,0,READ_BUFFER_SIZE * 2);
size_t inbytesleft = strlen(s_buffer.c_str());
size_t outbytesleft = READ_BUFFER_SIZE * 2 - 1;
-#ifdef OS_WIN32
+#if !defined(OS_LINUX) && !defined(__DragonFly__) && !defined(__APPLE__)
const char * inchar = (const char *)s_buffer.c_str();
#else
char * inchar = (char *)s_buffer.c_str();
|