blob: 9127f033fd2af55cc6497e5affef61673046cf29 (
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.5 2011/12/10 17:48:33 marino 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__)
const char * inchar = (const char *)s_buffer.c_str();
#else
char * inchar = (char *)s_buffer.c_str();
|