On Tue, 2013-02-12 at 10:06 +0100, David Henningsson wrote: > This is needed by snd_pcm_format_silence* functions which > return u_int*_t. It was discovered while trying to compile ALSA > programs with eglibc 2.17. > > Credits to Richard Shaw, Gary Buhrmaster, Matthieu Baerts and > Adam Conrad for this fix. > > BugLink: https://bugs.launchpad.net/bugs/1109298 > BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=885306 > Signed-off-by: David Henningsson <david.hennings...@canonical.com> > --- > include/asoundlib-head.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/asoundlib-head.h b/include/asoundlib-head.h > index 20c8a68..6edbab0 100644 > --- a/include/asoundlib-head.h > +++ b/include/asoundlib-head.h > @@ -31,6 +31,7 @@ > #include <unistd.h> > #include <stdio.h> > #include <stdlib.h> > +#include <sys/types.h>
int*_t and uint*_t (not u_int*_t) are standard in C99, and they are available in stdint.h or inttypes.h (both work, inttypes.h contains also the PRI* constants for the corresponding printf() format specifiers). Perhaps it would be better to use one of those headers instead? That would require converting u_int*_t usage to uint*_t, though, so it would take some extra work... -- Tanu -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1109298 Title: [Regression] error when trying to compile a program which uses alsa/asoundlib.h with EGLIBC 2.17 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/alsa-lib/+bug/1109298/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs