freebsd-ports/audio/pd/files/patch-src_s_audio_alsa.c
Martin Wilke 96c27b6b37 - Update to 0.43.1
PR:		166015
Submitted by:	Ports Fury
Feature safe:	yes
2012-03-25 03:55:37 +00:00

17 lines
438 B
C

--- src/s_audio_alsa.c.orig 2011-11-07 13:06:38.000000000 +0900
+++ src/s_audio_alsa.c 2012-02-26 03:12:50.000000000 +0900
@@ -25,7 +25,14 @@
#include <sched.h>
#include <sys/mman.h>
#include "s_audio_alsa.h"
+#if defined(__FreeBSD__)
+#include <sys/endian.h>
+#define LITTLE_ENDIAN _LITTLE_ENDIAN
+#define BIG_ENDIAN _BIG_ENDIAN
+#define BYTE_ORDER _BYTE_ORDER
+#else
#include <endian.h>
+#endif
/* Defines */
#define DEBUG(x) x