22 lines
763 B
Plaintext
22 lines
763 B
Plaintext
$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();
|