summaryrefslogtreecommitdiff
path: root/finance/libofx/patches/patch-aa
blob: 8dd3e18963e80493964f61f8009fd9ccd5a396a8 (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.4 2010/05/20 06:54:23 wiz 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
+#ifndef OS_LINUX
 	    const char * inchar = (const char *)s_buffer.c_str();
 #else
 	    char * inchar = (char *)s_buffer.c_str();