diff -r 7fdb96a64ea9 -r b70af19a3465 sswf/sswf.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sswf/sswf.patch Wed Feb 25 12:10:46 2009 +0100 @@ -0,0 +1,39 @@ +Index: include/sswf/libsswf.h +--- include/sswf/libsswf.h.orig 2008-06-23 07:51:47 +0200 ++++ include/sswf/libsswf.h 2008-06-23 18:10:33 +0200 +@@ -71,12 +71,14 @@ + /* wint_t is an "equivalent" to wchar_t without being limited to 16 bits as on MS-Windows */ + #ifndef _MSVC + #ifndef __APPLE_CC__ ++#ifndef __FreeBSD__ + #ifndef _WINT_T + #define _WINT_T + typedef unsigned int wint_t; + #endif + #endif + #endif ++#endif + + #ifndef M_PI + #define M_PI 3.14159265358979323846 +@@ -88,7 +90,7 @@ + #define rint(x) ((double) (long) floor(x + 0.5)) + #endif + +-#ifdef _LIBICONV_H ++#if defined(_LIBICONV_H) && !defined(__FreeBSD__) + #define ICONV_INPUT_CAST + #else + /* older versions of iconv() were broken in regard to the +Index: include/sswf/libsswf_c.h +--- include/sswf/libsswf_c.h.orig 2008-06-23 07:51:47 +0200 ++++ include/sswf/libsswf_c.h 2008-06-23 18:10:33 +0200 +@@ -38,7 +38,7 @@ + + #include + #include +-#if IRIX ++#if IRIX || defined(__FreeBSD__) + #include + #endif + #include