ljlinenoise: add hash file
[buildroot-gz.git] / package / alsa-lib / 0002-no-mmu.patch
blob2ae0f67158152a53512b89d2e5d3533ce632f9f0
1 Don't use fork() on noMMU platforms
3 [Gustavo: update patch for 1.0.28]
4 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
6 Index: alsa-lib-1.0.26/configure.ac
7 ===================================================================
8 --- alsa-lib-1.0.26.orig/configure.ac 2012-09-06 10:55:14.000000000 +0200
9 +++ alsa-lib-1.0.26/configure.ac 2013-03-09 16:22:08.000000000 +0100
10 @@ -66,6 +66,8 @@
11 AM_CONDITIONAL(ALSA_HSEARCH_R, [test "x$HAVE_HSEARCH_R" != xyes])
12 AC_CHECK_FUNCS([uselocale])
14 +AC_CHECK_FUNC([fork])
16 SAVE_LIBRARY_VERSION
17 AC_SUBST(LIBTOOL_VERSION_INFO)
19 Index: alsa-lib-1.0.26/src/pcm/pcm_direct.c
20 ===================================================================
21 --- alsa-lib-1.0.26.orig/src/pcm/pcm_direct.c 2012-09-06 10:55:14.000000000 +0200
22 +++ alsa-lib-1.0.26/src/pcm/pcm_direct.c 2013-03-09 16:22:51.000000000 +0100
23 @@ -424,13 +424,21 @@
24 close(dmix->server_fd);
25 return ret;
29 +#ifdef HAVE_FORK
30 ret = fork();
31 +#else
32 + ret = vfork();
33 +#endif
34 if (ret < 0) {
35 close(dmix->server_fd);
36 return ret;
37 } else if (ret == 0) {
38 +#ifdef HAVE_FORK
39 ret = fork();
40 +#else
41 + ret = vfork();
42 +#endif
43 if (ret == 0)
44 server_job(dmix);
45 _exit(EXIT_SUCCESS);