$NetBSD: patch-ae,v 1.7 2016/02/18 15:15:57 wiz Exp $

 - Handle endian detection for assorted operating systems.
 - Fix up linuxism.
 - Don't assert GNU ld on Solaris, where it might not be true.

--- include/local.h.orig	2015-11-09 07:39:18.000000000 +0000
+++ include/local.h
@@ -50,8 +50,10 @@
 #include <sys/poll.h>
 #include <sys/types.h>
 #include <errno.h>
+#if defined(__linux__)
 #include <linux/types.h>
 #include <linux/ioctl.h>
+#endif
 
 #ifdef SUPPORT_RESMGR
 #include <resmgr.h>
@@ -249,7 +251,9 @@ extern snd_lib_error_handler_t snd_err_m
 
 /*
  */
+#ifndef __sun
 #define HAVE_GNU_LD
+#endif
 #define HAVE_ELF
 #define HAVE_ASM_PREVIOUS_DIRECTIVE
 
