diff options
| author | Leo <thinkabit.ukim@gmail.com> | 2019-08-23 22:40:25 -0300 |
|---|---|---|
| committer | Leo <thinkabit.ukim@gmail.com> | 2019-08-23 23:35:41 -0300 |
| commit | 4a31b325d3c12cd80ce00431cd02312e7d51d436 (patch) | |
| tree | 79f160fd191984a335d8a05a26bfdcc36cd28d9e /testing/weston/weston-launch-custom-error-function.patch | |
| parent | a9a403ab7f14e25e9e2ce11f85062e3e898d678b (diff) | |
| download | aports-4a31b325d3c12cd80ce00431cd02312e7d51d436.tar.bz2 aports-4a31b325d3c12cd80ce00431cd02312e7d51d436.tar.xz | |
testing/weston: upgrade to 7.0.0
Diffstat (limited to 'testing/weston/weston-launch-custom-error-function.patch')
| -rw-r--r-- | testing/weston/weston-launch-custom-error-function.patch | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/testing/weston/weston-launch-custom-error-function.patch b/testing/weston/weston-launch-custom-error-function.patch deleted file mode 100644 index cd42950e71..0000000000 --- a/testing/weston/weston-launch-custom-error-function.patch +++ /dev/null @@ -1,48 +0,0 @@ -https://patchwork.freedesktop.org/patch/112884/ - -error.h is a gnu extension and not available in other -popular libcs like musl. This patch provides a replacement. - -Signed-off-by: Murray Calavera <murray.calavera@gmail.com> ---- - libweston/weston-launch.c | 20 +++++++++++++++++++- - 1 file changed, 19 insertions(+), 1 deletion(-) - -diff --git a/libweston/weston-launch.c b/libweston/weston-launch.c -index 140fde1..84f7d60 100644 ---- a/libweston/weston-launch.c -+++ b/libweston/weston-launch.c -@@ -33,7 +33,6 @@ - #include <poll.h> - #include <errno.h> - --#include <error.h> - #include <getopt.h> - - #include <sys/types.h> -@@ -112,6 +111,25 @@ struct weston_launch { - - union cmsg_data { unsigned char b[4]; int fd; }; - -+static void -+error(int status, int errnum, const char *msg, ...) -+{ -+ va_list args; -+ -+ fputs("weston-launch: ", stderr); -+ va_start(args, msg); -+ vfprintf(stderr, msg, args); -+ va_end(args); -+ -+ if (errnum) -+ fprintf(stderr, ": %s\n", strerror(errnum)); -+ else -+ fputc('\n', stderr); -+ -+ if (status) -+ exit(status); -+} -+ - static gid_t * - read_groups(void) - { |
