$NetBSD: patch-ap,v 1.6 2016/02/18 15:15:57 wiz Exp $

--- src/pcm/pcm_file.c.orig	2015-11-09 07:39:18.000000000 +0000
+++ src/pcm/pcm_file.c
@@ -26,7 +26,9 @@
  *
  */
   
+#if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__) && !defined(__sun)
 #include <byteswap.h>
+#endif
 #include <ctype.h>
 #include <string.h>
 #include "pcm_local.h"
