$NetBSD: patch-ae,v 1.7 2007/01/30 17:03:50 tv Exp $

--- src/fcint.h.orig	2006-12-02 16:52:09.000000000 -0500
+++ src/fcint.h
@@ -35,6 +35,21 @@
 #include <inttypes.h>
 #elif defined(HAVE_STDINT_H)
 #include <stdint.h>
+#elif defined(__INTERIX)
+
+/* limits.h has a definition for ALIGN() that conflicts with the one below */
+#  include <limits.h>
+#  undef ALIGN
+/* Interix 3.x has a gcc that shadows this. */
+#  ifndef _INTPTR_T_DEFINED
+     typedef long intptr_t;
+#  define _INTPTR_T_DEFINED
+#  endif
+#  ifndef _UINTPTR_T_DEFINED
+     typedef unsigned long uintptr_t;
+#  define _UINTPTR_T_DEFINED
+#  endif
+
 #else
 #error missing C99 integer data types
 #endif
@@ -111,7 +126,7 @@
 #define FC_BANK_LANGS	    0xfcfcfcfc
 
 /* slim_internal.h */
-#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && defined(__ELF__)
+#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && defined(__ELF__) && !defined(__sun)
 #define FcPrivate		__attribute__((__visibility__("hidden")))
 #define HAVE_GNUC_ATTRIBUTE 1
 #include "fcalias.h"
