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 <stdlib.h>
 #include <stdarg.h>
-#if IRIX
+#if IRIX || defined(__FreeBSD__)
 #include <inttypes.h>
 #endif
 #include <sswf/libsswf-config.h>
