toolchain: bump Codescape IMG MIPS version to 2016.05-06
[buildroot-gz.git] / package / x11r7 / xlib_libXpm / 0001-fork-check.patch
blobfb4fb7d133ccfeecd3130f2a65fa40e944746af9
1 Allow usage when fork() is not available
3 When fork() is not available, we need to define NO_ZPIPE so that
4 libXpm doesn't try to fork/exec to use a pipe to uncompress compressed
5 .xpm files. There is obviously a loss of functionality, but loading
6 uncompressed .xpm files should continue to work.
8 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10 Index: b/configure.ac
11 ===================================================================
12 --- a/configure.ac
13 +++ b/configure.ac
14 @@ -22,6 +22,7 @@
16 # Checks for library functions
17 AC_CHECK_FUNCS([strlcat])
18 +AC_CHECK_FUNC([fork],[], AC_DEFINE(NO_ZPIPE))
20 # Obtain compiler/linker options for dependencies
21 PKG_CHECK_MODULES(XPM, xproto x11)