diff options
author | Fredrik Fornwall <fredrik@fornwall.net> | 2015-10-01 00:36:43 +0200 |
---|---|---|
committer | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2015-10-02 08:57:05 +0800 |
commit | d98b6f24341d954bae05ce2a8c012edf207f11ee (patch) | |
tree | ff5626b3e849b3f25ff1e32ad41faad264358ba8 /src/exec.cpp | |
parent | 3ffbf9a7ea569b7ebb198bc7f9a04bde304d20a0 (diff) |
Only include <spawn.h> if HAVE_SPAWN_H
This fixes building on platforms such as Android
which lacks <spawn.h>.
Signed-off-by: David Adam <zanchey@ucc.gu.uwa.edu.au>
Diffstat (limited to 'src/exec.cpp')
-rw-r--r-- | src/exec.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/exec.cpp b/src/exec.cpp index e4ae5104..63186ef7 100644 --- a/src/exec.cpp +++ b/src/exec.cpp @@ -18,7 +18,9 @@ #include <assert.h> #include <vector> #include <algorithm> +#ifdef HAVE_SPAWN_H #include <spawn.h> +#endif #include <wctype.h> #include <map> #include <string> |