diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-11-21 18:00:58 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-11-21 18:04:22 +0100 |
commit | e10858075ced78ef88fee94bd80f5cd4ec631441 (patch) | |
tree | 3c9bc0c26a138484be5443716d157090444bcb9e /package/alsa-lib/patches/patch-src_pcm_pcm_direct_c | |
parent | f175d45b4c350905956688e2bd40cd9f27f9026e (diff) |
alsa-lib: allow to build for noMMU targets, patches from Buildroot
Diffstat (limited to 'package/alsa-lib/patches/patch-src_pcm_pcm_direct_c')
-rw-r--r-- | package/alsa-lib/patches/patch-src_pcm_pcm_direct_c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/package/alsa-lib/patches/patch-src_pcm_pcm_direct_c b/package/alsa-lib/patches/patch-src_pcm_pcm_direct_c new file mode 100644 index 000000000..0ca0e211f --- /dev/null +++ b/package/alsa-lib/patches/patch-src_pcm_pcm_direct_c @@ -0,0 +1,25 @@ +--- alsa-lib-1.0.29.orig/src/pcm/pcm_direct.c 2015-02-26 13:34:52.000000000 +0100 ++++ alsa-lib-1.0.29/src/pcm/pcm_direct.c 2016-11-20 18:20:58.456540169 +0100 +@@ -424,13 +424,21 @@ int snd_pcm_direct_server_create(snd_pcm + close(dmix->server_fd); + return ret; + } +- ++ ++#ifdef HAVE_FORK + ret = fork(); ++#else ++ ret = vfork(); ++#endif + if (ret < 0) { + close(dmix->server_fd); + return ret; + } else if (ret == 0) { ++#ifdef HAVE_FORK + ret = fork(); ++#else ++ ret = vfork(); ++#endif + if (ret == 0) + server_job(dmix); + _exit(EXIT_SUCCESS); |