diff options
-rw-r--r-- | xxxterm.h | 5 |
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: |