[alsa-devel] [PATCH] local.h: include sys/types.h to fix issues with pcm.h

John Spencer maillist-alsa at barfooze.de
Thu Oct 10 18:56:22 CEST 2013

sys/types.h is required for the u_int_XX types used by pcm.h.
since a change in pcm.h is not desired, we add the inclusion
to the header that includes pcm.h during build.

Signed-off-by: John Spencer <maillist-alsa at barfooze.de>
 include/local.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/local.h b/include/local.h
index f0db188..9464efa 100644
--- a/include/local.h
+++ b/include/local.h
@@ -31,6 +31,7 @@
 #include <endian.h>
 #include <stdarg.h>
 #include <sys/poll.h>
+#include <sys/types.h>
 #include <errno.h>
 #include <linux/types.h>
 #include <linux/ioctl.h>

More information about the Alsa-devel mailing list