• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/cairo/0003-fix-nofork-build.patch
Peter KorsgaardPeter Korsgaard committed 298cd8eaa2103 Feb 2015
Raw file
Source viewDiff to previous
 
1
test: fix build when SHOULD_FORK is false
2
​
3
The code in test/cairo-test-runner.c properly takes into account
4
platforms that do have fork() support, and uses the SHOULD_FORK define
5
to know whether fork is available or not.
6
​
7
However, this SHOULD_FORK macro is used to guard the inclusion of
8
<unistd.h>, which is needed to get the prototype of other functions
9
(namely readlink and getppid), that are used in portions of this file
10
not guarded by SHOULD_FORK.
11
​
12
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
13
​
14
Index: b/test/cairo-test-runner.c
15
===================================================================
16
--- a/test/cairo-test-runner.c
17
+++ b/test/cairo-test-runner.c
18
@@ -36,10 +36,10 @@
19
 #include <pixman.h> /* for version information */
20
 
21
 #define SHOULD_FORK HAVE_FORK && HAVE_WAITPID
22
-#if SHOULD_FORK
23
 #if HAVE_UNISTD_H
24
 #include <unistd.h>
25
 #endif
26
+#if SHOULD_FORK
27
 #if HAVE_SIGNAL_H
28
 #include <signal.h>
29
 #endif
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.