$NetBSD: patch-ap,v 1.4 2012/02/15 19:43:51 hans Exp $

--- src/pcm/pcm_file.c.orig	2009-05-06 07:07:23.000000000 +0000
+++ src/pcm/pcm_file.c
@@ -26,8 +26,10 @@
  *
  */
   
+#if !defined(__NetBSD__) && !defined(__DragonFly__) && !defined(__sun)
 #include <endian.h>
 #include <byteswap.h>
+#endif
 #include <ctype.h>
 #include <string.h>
 #include "pcm_local.h"
