Files
pkgsrc-ng/audio/alsa-lib/patches/patch-ah
2014-11-05 12:41:07 +01:00

25 lines
526 B
Plaintext

$NetBSD: patch-ah,v 1.2 2014/03/25 23:06:07 asau Exp $
--- src/pcm/pcm.c.orig 2009-12-16 15:18:51.000000000 +0000
+++ src/pcm/pcm.c
@@ -630,7 +630,7 @@ playback devices.
#include <stdio.h>
#include <string.h>
-#include <malloc.h>
+#include <stdlib.h>
#include <stdarg.h>
#include <signal.h>
#include <sys/poll.h>
@@ -639,6 +639,10 @@ playback devices.
#include <limits.h>
#include "pcm_local.h"
+#ifndef EBADFD
+#define EBADFD EBADF
+#endif
+
/**
* \brief get identifier of PCM handle
* \param pcm PCM handle