comparison lib/vte/musl.patch @ 513:47ef69f75b86

lib/vte: initial import, closes #1588
author David Demelier <markand@malikania.fr>
date Tue, 09 Apr 2019 14:30:50 +0200
parents
children
comparison
equal deleted inserted replaced
512:8e6c29fbd8fc 513:47ef69f75b86
1 From f78988d3bb5929c857e788a86c7919d6a4ffacc9 Mon Sep 17 00:00:00 2001
2 From: Danilo Spinella <danyspin97@protonmail.com>
3 Date: Thu, 21 Mar 2019 14:19:26 +0100
4 Subject: [PATCH] Add W_EXITCODE macro for non-glibc systems
5
6 ---
7 src/missing.hh | 21 +++++++++++++++++++++
8 src/widget.cc | 1 +
9 2 files changed, 22 insertions(+)
10 create mode 100644 src/missing.hh
11
12 diff --git a/src/missing.hh b/src/missing.hh
13 new file mode 100644
14 index 00000000..1baa993d
15 --- /dev/null
16 +++ b/src/missing.hh
17 @@ -0,0 +1,21 @@
18 +/* Copyright 2019 Danilo Spinella
19 + *
20 + * This library is free software; you can redistribute it and/or
21 + * modify it under the terms of the GNU Lesser General Public
22 + * License as published by the Free Software Foundation; either
23 + * version 2.1 of the License, or (at your option) any later version.
24 + *
25 + * This library is distributed in the hope that it will be useful,
26 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
27 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28 + * Lesser General Public License for more details.
29 + *
30 + * You should have received a copy of the GNU Lesser General Public
31 + * License along with this library; if not, write to the Free Software
32 + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
33 + */
34 +
35 +#ifndef W_EXITCODE
36 +#define W_EXITCODE(ret, sig) ((ret) << 8 | (sig))
37 +#endif
38 +
39 diff --git a/src/widget.cc b/src/widget.cc
40 index 331ddba9..555a4adf 100644
41 --- a/src/widget.cc
42 +++ b/src/widget.cc
43 @@ -21,6 +21,7 @@
44 #include "widget.hh"
45
46 #include <sys/wait.h> // for W_EXITCODE
47 +#include "missing.hh" // for W_EXITCODE on non-glibc systems
48
49 #include <new>
50 #include <string>
51 --
52 2.21.0
53