pkgsrc/mbone/rat/patches/patch-ag
joerg 0a498280f1 Add DragonFly support. Allow build on newer NetBSD versions.
Don't require MTREE. Simplify Makefiles by building directly
as bin/rat -- pkgsrc doesn't support multiple builds in one
WRKSRC anyway.
2006-02-24 00:35:59 +00:00

35 lines
808 B
Text

$NetBSD: patch-ag,v 1.3 2006/02/24 00:35:59 joerg Exp $
--- src/config.h.orig Sat Aug 15 15:16:46 1998
+++ src/config.h Wed Nov 4 21:27:03 1998
@@ -56,6 +56,30 @@
#define AUDIO_LINE_IN 2
#endif /* FreeBSD */
+#ifdef __DragonFly__
+#define OSNAME "DragonFly"
+#include <unistd.h>
+#include <stdlib.h>
+#include <sys/soundcard.h>
+#define DIFF_BYTE_ORDER 1
+#define AUDIO_SPEAKER 0
+#define AUDIO_HEADPHONE 1
+#define AUDIO_LINE_OUT 4
+#define AUDIO_MICROPHONE 1
+#define AUDIO_LINE_IN 2
+#endif /* DragonFly */
+
+#ifdef __NetBSD__
+#define OSNAME "NetBSD"
+#define DEFINED_ERRLIST
+#include <sys/stat.h>
+#include <sys/time.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <unistd.h>
+#include <sys/audioio.h>
+#endif
+
#ifdef SunOS_5
#define OSNAME "Solaris"
#include <sys/stat.h>