diff options
author | Jeremy Huddleston <eradicator@gentoo.org> | 2004-07-01 00:11:30 +0000 |
---|---|---|
committer | Jeremy Huddleston <eradicator@gentoo.org> | 2004-07-01 00:11:30 +0000 |
commit | a09a87e86a69c94b5dceb730be3e23e352ff2e36 (patch) | |
tree | a6ff768cb61f9be07f7381ed1173919980a6604d /media-libs/alsa-lib/files | |
parent | Version bump; added snortsam support (diff) | |
download | historical-a09a87e86a69c94b5dceb730be3e23e352ff2e36.tar.gz historical-a09a87e86a69c94b5dceb730be3e23e352ff2e36.tar.bz2 historical-a09a87e86a69c94b5dceb730be3e23e352ff2e36.zip |
Added logic to detect a bad asound.h (missing __user) and die so the user can fix it. This doesn't break alsa-lib, but it breaks packages that use the alsa driver includes, I I believe this is the best place to do the test rather than in every user app. This closes bug #54533.
Diffstat (limited to 'media-libs/alsa-lib/files')
-rw-r--r-- | media-libs/alsa-lib/files/digest-alsa-lib-1.0.5-r2 (renamed from media-libs/alsa-lib/files/digest-alsa-lib-1.0.5-r1) | 0 | ||||
-rw-r--r-- | media-libs/alsa-lib/files/fix-asound_h.patch | 13 | ||||
-rw-r--r-- | media-libs/alsa-lib/files/test-asound_h.c | 7 |
3 files changed, 20 insertions, 0 deletions
diff --git a/media-libs/alsa-lib/files/digest-alsa-lib-1.0.5-r1 b/media-libs/alsa-lib/files/digest-alsa-lib-1.0.5-r2 index 358b269dffe0..358b269dffe0 100644 --- a/media-libs/alsa-lib/files/digest-alsa-lib-1.0.5-r1 +++ b/media-libs/alsa-lib/files/digest-alsa-lib-1.0.5-r2 diff --git a/media-libs/alsa-lib/files/fix-asound_h.patch b/media-libs/alsa-lib/files/fix-asound_h.patch new file mode 100644 index 000000000000..50ccefb9195d --- /dev/null +++ b/media-libs/alsa-lib/files/fix-asound_h.patch @@ -0,0 +1,13 @@ +--- asound.h.orig 2004-06-30 15:18:14.131997218 -0700 ++++ asound.h 2004-06-30 15:19:05.599888165 -0700 +@@ -61,6 +61,10 @@ + #include <sys/types.h> + #endif + ++#ifndef __user ++#define __user ++#endif ++ + /* + * protocol version + */ diff --git a/media-libs/alsa-lib/files/test-asound_h.c b/media-libs/alsa-lib/files/test-asound_h.c new file mode 100644 index 000000000000..903952090dea --- /dev/null +++ b/media-libs/alsa-lib/files/test-asound_h.c @@ -0,0 +1,7 @@ +#include <sound/asound.h> + +int main() +{ + return 0; +} + |