mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
community/sxmo-dwm: fix build with GCC 14
This commit is contained in:
parent
58e66ffa7d
commit
2e83d9e401
@ -13,7 +13,8 @@ subpackages="$pkgname-doc"
|
|||||||
provides="dwm"
|
provides="dwm"
|
||||||
provider_priority=10
|
provider_priority=10
|
||||||
options="!check" # has no tests
|
options="!check" # has no tests
|
||||||
source="$pkgname-$pkgver-2.tar.gz::https://git.sr.ht/~mil/sxmo-dwm/archive/$pkgver.tar.gz"
|
source="$pkgname-$pkgver-2.tar.gz::https://git.sr.ht/~mil/sxmo-dwm/archive/$pkgver.tar.gz
|
||||||
|
gcc14.patch"
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
default_prepare
|
default_prepare
|
||||||
@ -44,4 +45,5 @@ package() {
|
|||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
9a2cfdde48101d56b2f0f91b56b9b51e4cee2e0be195b3d93155950df312ffe3fa79c74a77a3cecf3456ba3b56373230b56aa54b9841791f466af306b181c869 sxmo-dwm-6.3.0-2.tar.gz
|
9a2cfdde48101d56b2f0f91b56b9b51e4cee2e0be195b3d93155950df312ffe3fa79c74a77a3cecf3456ba3b56373230b56aa54b9841791f466af306b181c869 sxmo-dwm-6.3.0-2.tar.gz
|
||||||
|
9e656717f4e15721cc718f115f27b2267bc7a9d979b7429d1594107309d150ac43421b0609c1af99b3c2d3eeee7e655138c0c4c225d10704f12bc1e65773de7a gcc14.patch
|
||||||
"
|
"
|
||||||
|
43
community/sxmo-dwm/gcc14.patch
Normal file
43
community/sxmo-dwm/gcc14.patch
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
--- sxmo-dwm-6.3.0.orig/dwm.c
|
||||||
|
+++ sxmo-dwm-6.3.0/dwm.c
|
||||||
|
@@ -36,6 +36,7 @@
|
||||||
|
#include <X11/Xlib.h>
|
||||||
|
#include <X11/Xproto.h>
|
||||||
|
#include <X11/Xutil.h>
|
||||||
|
+#include <X11/XKBlib.h>
|
||||||
|
#ifdef XINERAMA
|
||||||
|
#include <X11/extensions/Xinerama.h>
|
||||||
|
#endif /* XINERAMA */
|
||||||
|
@@ -961,6 +962,11 @@
|
||||||
|
return m;
|
||||||
|
}
|
||||||
|
|
||||||
|
+int
|
||||||
|
+iswide() {
|
||||||
|
+ return sw > 1000 ? 1 : 0;
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
void
|
||||||
|
drawbar(Monitor *m)
|
||||||
|
{
|
||||||
|
@@ -1267,11 +1273,6 @@
|
||||||
|
}
|
||||||
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
|
-int
|
||||||
|
-iswide() {
|
||||||
|
- return sw > 1000 ? 1 : 0;
|
||||||
|
-}
|
||||||
|
-
|
||||||
|
void
|
||||||
|
markhold(KeySym keysym)
|
||||||
|
{
|
||||||
|
@@ -1976,7 +1977,7 @@
|
||||||
|
/* init appearance */
|
||||||
|
scheme = ecalloc(LENGTH(colors), sizeof(Clr *));
|
||||||
|
for (i = 0; i < LENGTH(colors); i++)
|
||||||
|
- scheme[i] = drw_scm_create(drw, colors[i], 3);
|
||||||
|
+ scheme[i] = drw_scm_create(drw, (const char **) colors[i], 3);
|
||||||
|
for (j = 0; j <= SchemeTabInactive; ++j) {
|
||||||
|
free(colors[j][ColFg]);
|
||||||
|
free(colors[j][ColBg]);
|
Loading…
Reference in New Issue
Block a user