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>
This commit is contained in:
Fredrik Fornwall 2015-10-01 00:36:43 +02:00 committed by David Adam
parent 3ffbf9a7ea
commit d98b6f2434

View File

@ -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>