$NetBSD: patch-ab,v 1.3 2009/08/16 14:17:44 wiz Exp $

--- applyplugin.c.orig	2007-11-06 10:52:56.000000000 +0000
+++ applyplugin.c
@@ -6,7 +6,11 @@
 /*****************************************************************************/
 
 #include <dlfcn.h>
-#include <endian.h>
+#ifdef __linux__
+# include <endian.h>
+#else
+# include <sys/endian.h>
+#endif
 #include <errno.h>
 #include <math.h>
 #include <stdlib.h>
