archrelease: copy trunk to community-any
[ArchLinux/community.git] / meterbridge / repos / community-x86_64 / meterbridge-0.9.3-xinitthreads.patch
blob9bde8ba33cb58a624b871397cd15c47744d51a25
1 diff -Naur orig.meterbridge-0.9.3/configure.in meterbridge-0.9.3/configure.in
2 --- orig.meterbridge-0.9.3/configure.in 2019-01-24 17:00:49.573488552 -0800
3 +++ meterbridge-0.9.3/configure.in 2019-01-24 17:01:49.105270619 -0800
4 @@ -9,6 +9,7 @@
5 # Checks for libraries.
6 AC_CHECK_LIB([pthread], [pthread_self], , [AC_MSG_ERROR(You need libpthread installed)])
7 AC_CHECK_LIB([m], [sqrt], , [AC_MSG_ERROR(Can't find libm)])
8 +AC_CHECK_LIB([X11], [XInitThreads], , [AC_MSG_ERROR(You need Xlib instaled)])
10 # Checks for packages.
11 AM_PATH_SDL(1.2.0, , AC_MSG_ERROR([Requires SDL 1.2 or later]))
12 diff -Naur orig.meterbridge-0.9.3/src/main.c meterbridge-0.9.3/src/main.c
13 --- orig.meterbridge-0.9.3/src/main.c 2019-01-24 17:00:49.573488552 -0800
14 +++ meterbridge-0.9.3/src/main.c 2019-01-24 17:02:23.251050690 -0800
15 @@ -10,6 +10,7 @@
16 #include <GL/gl.h>
17 #include <jack/jack.h>
18 #include <getopt.h>
19 +#include <X11/Xlib.h>
21 #include "config.h"
22 #include "main.h"
23 @@ -68,6 +69,7 @@
24 meter_t meter_type = MET_PPM;
25 char window_name[256];
26 char *us_client_name = NULL;
27 + XInitThreads();
29 num_meters = argc;
30 while ((opt = getopt(argc, argv, "t:r:c:n:g:h")) != -1) {