298cd8eaa2
Autogenerated from rename-patch.py (http://patchwork.ozlabs.org/patch/403345) Signed-off-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
22 lines
710 B
Diff
22 lines
710 B
Diff
Allow usage when fork() is not available
|
|
|
|
When fork() is not available, we need to define NO_ZPIPE so that
|
|
libXpm doesn't try to fork/exec to use a pipe to uncompress compressed
|
|
.xpm files. There is obviously a loss of functionality, but loading
|
|
uncompressed .xpm files should continue to work.
|
|
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
|
|
Index: b/configure.ac
|
|
===================================================================
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -22,6 +22,7 @@
|
|
|
|
# Checks for library functions
|
|
AC_CHECK_FUNCS([strlcat])
|
|
+AC_CHECK_FUNC([fork],[], AC_DEFINE(NO_ZPIPE))
|
|
|
|
# Obtain compiler/linker options for dependencies
|
|
PKG_CHECK_MODULES(XPM, xproto x11)
|