void-packages/srcpkgs/vte3/patches/fix-W_EXITCODE.patch

18 lines
440 B
Diff
Raw Normal View History

2018-09-03 17:01:01 +02:00
Source: https://mail-archives.apache.org/mod_mbox/mesos-reviews/201610.mbox/%3C20161014170728.1720.54446@reviews.apache.org%3E
Upstream: No
Reason: fixes compilation with musl that doesn't define W* macros.
--- src/widget.cc
+++ src/widget.cc
@@ -28,6 +28,10 @@
#include "vtegtk.hh"
#include "debug.h"
+#ifndef W_EXITCODE
+#define W_EXITCODE(ret, sig) ((ret) << 8 | (sig))
+#endif
+
using namespace std::literals;
namespace vte {