compiz-fusion-plugins-main: Fix implicit declaration for malloc and free that cause FTBFS.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/27/head
Slávek Banko 3 months ago
parent 69955be31f
commit 1829166fcc
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -1,3 +1,9 @@
compiz-fusion-plugins-main-trinity (0.8.4-3debian13.0.0+7~a) trixie; urgency=low
* Fix implicit declaration for malloc and free that cause FTBFS.
-- Slávek Banko <slavek.banko@axis.cz> Sun, 22 Sep 2023 15:20:05 +0200
compiz-fusion-plugins-main-trinity (0.8.4-3debian13.0.0+6~a) trixie; urgency=low
* Build without support for gconf.

@ -0,0 +1,97 @@
Index: compiz-fusion-plugins-main-trinity-0.8.4/src/mag/mag.c
===================================================================
--- compiz-fusion-plugins-main-trinity-0.8.4.orig/src/mag/mag.c
+++ compiz-fusion-plugins-main-trinity-0.8.4/src/mag/mag.c
@@ -21,6 +21,7 @@
*/
#include <math.h>
+#include <stdlib.h>
#include <string.h>
#include <compiz-core.h>
Index: compiz-fusion-plugins-main-trinity-0.8.4/src/mousepoll/mousepoll.c
===================================================================
--- compiz-fusion-plugins-main-trinity-0.8.4.orig/src/mousepoll/mousepoll.c
+++ compiz-fusion-plugins-main-trinity-0.8.4/src/mousepoll/mousepoll.c
@@ -20,6 +20,7 @@
*
*/
+#include <stdlib.h>
#include <compiz-core.h>
#include "compiz-mousepoll.h"
Index: compiz-fusion-plugins-main-trinity-0.8.4/src/opacify/opacify.c
===================================================================
--- compiz-fusion-plugins-main-trinity-0.8.4.orig/src/opacify/opacify.c
+++ compiz-fusion-plugins-main-trinity-0.8.4/src/opacify/opacify.c
@@ -21,6 +21,7 @@
*
*/
+#include <stdlib.h>
#include <compiz-core.h>
#include "opacify_options.h"
Index: compiz-fusion-plugins-main-trinity-0.8.4/src/scaleaddon/scaleaddon.c
===================================================================
--- compiz-fusion-plugins-main-trinity-0.8.4.orig/src/scaleaddon/scaleaddon.c
+++ compiz-fusion-plugins-main-trinity-0.8.4/src/scaleaddon/scaleaddon.c
@@ -25,6 +25,7 @@
*/
#include <math.h>
+#include <stdlib.h>
#include <string.h>
#include <X11/Xatom.h>
Index: compiz-fusion-plugins-main-trinity-0.8.4/src/session/session.c
===================================================================
--- compiz-fusion-plugins-main-trinity-0.8.4.orig/src/session/session.c
+++ compiz-fusion-plugins-main-trinity-0.8.4/src/session/session.c
@@ -29,6 +29,7 @@
#include <compiz-core.h>
+#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <pwd.h>
Index: compiz-fusion-plugins-main-trinity-0.8.4/src/vpswitch/vpswitch.c
===================================================================
--- compiz-fusion-plugins-main-trinity-0.8.4.orig/src/vpswitch/vpswitch.c
+++ compiz-fusion-plugins-main-trinity-0.8.4/src/vpswitch/vpswitch.c
@@ -27,6 +27,7 @@
*/
#include <compiz-core.h>
+#include <stdlib.h>
#include <string.h>
#include <X11/keysymdef.h>
#include "vpswitch_options.h"
Index: compiz-fusion-plugins-main-trinity-0.8.4/src/winrules/winrules.c
===================================================================
--- compiz-fusion-plugins-main-trinity-0.8.4.orig/src/winrules/winrules.c
+++ compiz-fusion-plugins-main-trinity-0.8.4/src/winrules/winrules.c
@@ -20,7 +20,7 @@
*/
#include <compiz-core.h>
-
+#include <stdlib.h>
#include <X11/Xatom.h>
#define WINRULES_SCREEN_OPTION_SKIPTASKBAR_MATCH 0
Index: compiz-fusion-plugins-main-trinity-0.8.4/src/workarounds/workarounds.c
===================================================================
--- compiz-fusion-plugins-main-trinity-0.8.4.orig/src/workarounds/workarounds.c
+++ compiz-fusion-plugins-main-trinity-0.8.4/src/workarounds/workarounds.c
@@ -20,6 +20,7 @@
* This plug-in for Metacity-like workarounds.
*/
+#include <stdlib.h>
#include <string.h>
#include <limits.h>

@ -5,3 +5,4 @@
08_disable_desktop_vpswitch.patch
09-multiple-definitions.diff
10-disable-gconf.patch
11-malloc-free-implicit-declaration.diff

Loading…
Cancel
Save