pkgsrc/games/xnibbles/patches/patch-ab
2012-03-07 16:19:20 +00:00

25 lines
667 B
Text

$NetBSD: patch-ab,v 1.4 2012/03/07 16:19:21 hans Exp $
--- sound.c.orig 1998-02-28 20:40:49.000000000 +0000
+++ sound.c
@@ -19,12 +19,18 @@
Sean Macisaac (sjm@acm.org), and Ian Peters (ipeters@acm.org). */
#include "common.h"
-#include <malloc.h>
+#include <stdlib.h>
#include <limits.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <linux/soundcard.h>
+#if defined(__NetBSD__) || defined(__OpenBSD__)
+ #include <soundcard.h>
+#elif defined(__DragonFly__) || defined(__FreeBSD__) || defined(__sun)
+ #include <sys/soundcard.h>
+#else
+ #include <linux/soundcard.h>
+#endif
#include <sys/ioctl.h>
#include <sys/wait.h>