obconf: fix build with gcc14 (#369085)

This commit is contained in:
Franz Pletz
2024-12-30 14:14:24 +01:00
committed by GitHub
2 changed files with 42 additions and 1 deletions
@@ -0,0 +1,37 @@
diff --git a/src/appearance.c b/src/appearance.c
index 4fb3f0c..7ae9cab 100644
--- a/src/appearance.c
+++ b/src/appearance.c
@@ -20,6 +20,7 @@
#include "main.h"
#include "tree.h"
#include "preview_update.h"
+#include <ctype.h>
static gboolean mapping = FALSE;
diff --git a/src/desktops.h b/src/desktops.h
index 1ba3e36..968595e 100644
--- a/src/desktops.h
+++ b/src/desktops.h
@@ -22,6 +22,7 @@
#include <gtk/gtk.h>
+void desktops_setup_tab();
void desktops_setup_num(GtkWidget *w);
void desktops_setup_names(GtkWidget *w);
diff --git a/src/main.c b/src/main.c
index d7e3446..fdfae54 100644
--- a/src/main.c
+++ b/src/main.c
@@ -28,6 +28,8 @@
#include "dock.h"
#include "preview_update.h"
#include "gettext.h"
+#include "desktops.h"
+#include "moveresize.h"
#include <gdk/gdkx.h>
#define SN_API_NOT_YET_FROZEN
+5 -1
View File
@@ -23,6 +23,8 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-qwm66VA/ueRMFtSUcrmuObNkz+KYgWRnmR7TnQwpxiE=";
};
patches = [ ./fix-implicit-declarations.patch ];
nativeBuildInputs = [
autoreconfHook
pkg-config
@@ -38,8 +40,10 @@ stdenv.mkDerivation (finalAttrs: {
openbox
];
strictDeps = true;
postPatch = ''
substituteInPlace configure.ac --replace 2.0.4 ${finalAttrs.version}
substituteInPlace configure.ac --replace-fail 2.0.4 ${finalAttrs.version}
'';
meta = {