//
// ----------------------------------------------------------------------------
-
+#if defined(__NetBSD__)
+#include <sys/endian.h>
+#else
#include <endian.h>
+#endif
#include <sys/time.h>
#include "zita-alsa-pcmi.h"
timespec timeout;
timeout.tv_sec = 1;
timeout.tv_nsec = 0;
+#if defined(__NetBSD__)
+ r = pollts (_poll_fd, n2, &timeout, NULL);
+#else
r = ppoll (_poll_fd, n2, &timeout, NULL);
+#endif
+
if (r < 0)
{
snd_pcm_hw_params_get_channels_max (hwpar, nchan);
if (*nchan > 1024)
{
- if (_debug & DEBUG_INIT) fprintf (stderr, "Alsa_pcmi: detected more than 1024 %s channnels, reset to 2.\n",
+ if (_debug & DEBUG_INIT) fprintf (stderr, "Alsa_pcmi: detected more than 1024 %s channels, reset to 2.\n",
sname);
*nchan = 2;
}