$NetBSD: patch-ad,v 1.4 2005/11/08 01:21:11 tv Exp $

--- include/FLAC/ordinals.h.orig	2006-11-20 07:05:18.000000000 +0000
+++ include/FLAC/ordinals.h
@@ -32,7 +32,7 @@
 #ifndef FLAC__ORDINALS_H
 #define FLAC__ORDINALS_H
 
-#if !(defined(_MSC_VER) || defined(__BORLANDC__) || defined(__EMX__))
+#if !(defined(_MSC_VER) || defined(__BORLANDC__) || defined(__EMX__) || defined(__INTERIX))
 #include <inttypes.h>
 #endif
 
@@ -59,8 +59,12 @@ typedef int32_t FLAC__int32;
 typedef int64_t FLAC__int64;
 typedef uint16_t FLAC__uint16;
 typedef uint32_t FLAC__uint32;
+#if defined __INTERIX
+typedef u_int64_t FLAC__uint64;
+#else
 typedef uint64_t FLAC__uint64;
 #endif
+#endif
 
 typedef int FLAC__bool;
 
