diff mbox

[1/1] cairo: fix build of any2ppm if no fork().

Message ID 1398418035-21257-1-git-send-email-eric.le.bihan.dev@free.fr
State Accepted
Commit 8e5b15d9e7ca16e0413bd002424843319eae676e
Headers show

Commit Message

Eric Le Bihan April 25, 2014, 9:27 a.m. UTC
The test program any2ppm can run as daemon. This feature can be disabled
at compile time, if the required headers are not present. However the
support for fork() is not checked.

Fixes http://autobuild.buildroot.net/results/4f2/4f271d55d7060d412aa336cfc2da3be3538d3594/.

Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
---
 package/cairo/cairo-004-fix-nofork-any2ppm.patch | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 package/cairo/cairo-004-fix-nofork-any2ppm.patch

Comments

Peter Korsgaard May 15, 2014, 8:43 p.m. UTC | #1
>>>>> "Eric" == Eric Le Bihan <eric.le.bihan.dev@free.fr> writes:

 > The test program any2ppm can run as daemon. This feature can be disabled
 > at compile time, if the required headers are not present. However the
 > support for fork() is not checked.

 > Fixes http://autobuild.buildroot.net/results/4f2/4f271d55d7060d412aa336cfc2da3be3538d3594/.

 > Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>

Committed, thanks.
diff mbox

Patch

diff --git a/package/cairo/cairo-004-fix-nofork-any2ppm.patch b/package/cairo/cairo-004-fix-nofork-any2ppm.patch
new file mode 100644
index 0000000..16cc2e0
--- /dev/null
+++ b/package/cairo/cairo-004-fix-nofork-any2ppm.patch
@@ -0,0 +1,23 @@ 
+test: fix build of any2ppm if fork is not available.
+
+The test program any2ppm can run as daemon. This feature can be disabled at
+compile time, if the required headers are not present. However the support for
+fork() is not checked.
+
+This patch fixes this issue.
+
+Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
+
+Index: cairo-1.12.10/test/any2ppm.c
+===================================================================
+--- cairo-1.12.10.orig/test/any2ppm.c	2012-04-19 14:17:34.000000000 +0200
++++ cairo-1.12.10/test/any2ppm.c	2014-04-25 11:13:30.000000000 +0200
+@@ -79,7 +79,7 @@
+ 
+ #include <errno.h>
+ 
+-#if HAVE_UNISTD_H && HAVE_FCNTL_H && HAVE_SIGNAL_H && HAVE_SYS_STAT_H && HAVE_SYS_SOCKET_H && HAVE_SYS_POLL_H && HAVE_SYS_UN_H
++#if HAVE_UNISTD_H && HAVE_FCNTL_H && HAVE_SIGNAL_H && HAVE_SYS_STAT_H && HAVE_SYS_SOCKET_H && HAVE_SYS_POLL_H && HAVE_SYS_UN_H && HAVE_FORK
+ #include <fcntl.h>
+ #include <signal.h>
+ #include <sys/stat.h>