$NetBSD: patch-ak,v 1.1 2007/01/13 15:35:52 wiz Exp $ --- oggenc/flac.h.orig 2005-06-03 10:15:10.000000000 +0000 +++ oggenc/flac.h @@ -5,10 +5,21 @@ #include "encode.h" #include "audio.h" #include +#include +#if !defined(FLAC_API_VERSION_CURRENT) || (FLAC_API_VERSION_CURRENT < 8) +#include +#define NEED_EASYFLAC 1 +#endif +#if NEED_EASYFLAC #include "easyflac.h" +#endif typedef struct { +#if NEED_EASYFLAC EasyFLAC__StreamDecoder *decoder; +#else + FLAC__StreamDecoder *decoder; +#endif short channels; int rate; long totalsamples; /* per channel, of course */