about summary refs log tree commit diff stats
path: root/xxxterm.h
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2012-01-23 11:49:36 -0600
committerMarco Peereboom <marco@conformal.com>2012-01-23 11:49:36 -0600
commit99b7201424470d542f136db15058979944306297 (patch)
tree336afe6dea5802bab60d239af772227a34a618ac /xxxterm.h
parent934c804aba1de44c6c649e38292b8ae8cafd8b61 (diff)
downloadxombrero-99b7201424470d542f136db15058979944306297.tar.gz
move sys/wait.h within #define
Diffstat (limited to 'xxxterm.h')
-rw-r--r--xxxterm.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/xxxterm.h b/xxxterm.h
index 908fa29..6fb277c 100644
--- a/xxxterm.h
+++ b/xxxterm.h
@@ -31,7 +31,6 @@
 #include <fcntl.h>
 
 #include <sys/types.h>
-#include <sys/wait.h>
 #if defined(__linux__)
 #include "linux/util.h"
 #include "linux/tree.h"
@@ -80,6 +79,10 @@ u_int32_t	arc4random_uniform(u_int32_t);
 /* comment if you don't want to use the external editor */
 #define XT_ENABLE_EXTERNAL_EDITOR	(1)
 
+#ifdef XT_ENABLE_EXTERNAL_EDITOR
+#include <sys/wait.h>
+#endif
+
 #include "javascript.h"
 /*
 javascript.h borrowed from vimprobable2 under the following license: