diff options
| author | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 14:36:22 +0200 |
|---|---|---|
| committer | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 15:32:53 +0200 |
| commit | f4cf9fe05bb3f32fabea4e54dd92d368967a80da (patch) | |
| tree | 487180fa9866985ea7b28e625651765d86f515c3 /meta/recipes-multimedia/alsa/alsa-lib/Check-if-wordexp-function-is-supported.patch | |
| download | poky-f4cf9fe05bb3f32fabea4e54dd92d368967a80da.tar.gz | |
initial commit for Enea Linux 4.0
Migrated from the internal git server on the daisy-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta/recipes-multimedia/alsa/alsa-lib/Check-if-wordexp-function-is-supported.patch')
| -rw-r--r-- | meta/recipes-multimedia/alsa/alsa-lib/Check-if-wordexp-function-is-supported.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/alsa/alsa-lib/Check-if-wordexp-function-is-supported.patch b/meta/recipes-multimedia/alsa/alsa-lib/Check-if-wordexp-function-is-supported.patch new file mode 100644 index 0000000000..41b3c23a40 --- /dev/null +++ b/meta/recipes-multimedia/alsa/alsa-lib/Check-if-wordexp-function-is-supported.patch | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | From 2555c5d62229cf269974f6ec6e4689ab97bbda42 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: "Hong H. Pham" <hong.pham@windriver.com> | ||
| 3 | Date: Tue, 26 Feb 2013 19:40:04 -0500 | ||
| 4 | Subject: [PATCH] Check if wordexp function is supported | ||
| 5 | |||
| 6 | eglibc could be configured to build without wordexp, so it is not enough | ||
| 7 | to check if wordexp.h exists (the header file could be installed, but it's | ||
| 8 | possible that the wordexp() function is not supported). An additional | ||
| 9 | check if wordexp() is supported by the system C library is needed. | ||
| 10 | |||
| 11 | Upstream-Status: Pending | ||
| 12 | |||
| 13 | Signed-off-by: Hong H. Pham <hong.pham@windriver.com> | ||
| 14 | --- | ||
| 15 | configure.in | 5 ++++- | ||
| 16 | src/userfile.c | 2 +- | ||
| 17 | 2 files changed, 5 insertions(+), 2 deletions(-) | ||
| 18 | |||
| 19 | diff --git a/configure.in b/configure.in | ||
| 20 | index 4bcb0d6..ba1c2dd 100644 | ||
| 21 | --- a/configure.in | ||
| 22 | +++ b/configure.in | ||
| 23 | @@ -333,7 +333,10 @@ arm*) | ||
| 24 | esac | ||
| 25 | |||
| 26 | dnl Check for wordexp.h | ||
| 27 | -AC_CHECK_HEADERS([wordexp.h]) | ||
| 28 | +AC_CHECK_HEADERS([wordexp.h], | ||
| 29 | + dnl Make sure wordexp is supported by the C library | ||
| 30 | + AC_CHECK_FUNCS([wordexp]) | ||
| 31 | +) | ||
| 32 | |||
| 33 | dnl Check for resmgr support... | ||
| 34 | AC_MSG_CHECKING(for resmgr support) | ||
| 35 | diff --git a/src/userfile.c b/src/userfile.c | ||
| 36 | index 3a73836..b8ce809 100644 | ||
| 37 | --- a/src/userfile.c | ||
| 38 | +++ b/src/userfile.c | ||
| 39 | @@ -32,7 +32,7 @@ | ||
| 40 | * stores the first matchine one. The returned string is strdup'ed. | ||
| 41 | */ | ||
| 42 | |||
| 43 | -#ifdef HAVE_WORDEXP_H | ||
| 44 | +#if (defined(HAVE_WORDEXP_H) && defined(HAVE_WORDEXP)) | ||
| 45 | #include <wordexp.h> | ||
| 46 | #include <assert.h> | ||
| 47 | int snd_user_file(const char *file, char **result) | ||
| 48 | -- | ||
| 49 | 1.7.10.4 | ||
| 50 | |||
