--- vte-0.54.0/src/widget.cc.old	2018-09-02 13:20:15.000000000 +0000
+++ vte-0.54.0/src/widget.cc	2018-09-08 21:20:16.000000000 +0000
@@ -21,6 +21,9 @@
 #include "widget.hh"
 
 #include <sys/wait.h> // for W_EXITCODE
+#ifndef W_EXITCODE
+#  define W_EXITCODE(ret, sig)  ((unsigned int)(ret) << 8 | sig)
+#endif
 
 #include <new>
 #include <string>