From 252ae987f1fb2c427d20c47c10e9f38bafbd7872 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Fri, 28 Apr 2017 16:10:28 +0200 Subject: [PATCH] cairo-dock-plugins: fix build --- .../patches/fix-timeval-redef.patch | 56 +++++++++++++++++++ srcpkgs/cairo-dock-plugins/template | 2 +- 2 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/cairo-dock-plugins/patches/fix-timeval-redef.patch diff --git a/srcpkgs/cairo-dock-plugins/patches/fix-timeval-redef.patch b/srcpkgs/cairo-dock-plugins/patches/fix-timeval-redef.patch new file mode 100644 index 0000000000..da2155621d --- /dev/null +++ b/srcpkgs/cairo-dock-plugins/patches/fix-timeval-redef.patch @@ -0,0 +1,56 @@ +--- alsaMixer/src/applet-struct.h.orig 2017-04-28 15:38:01.448075750 +0200 ++++ alsaMixer/src/applet-struct.h 2017-04-28 15:38:10.281059992 +0200 +@@ -23,6 +23,8 @@ + #include + #include + #define _STRUCT_TIMEVAL ++#define __timeval_defined 1 ++#define __timespec_defined 1 + #include + + #ifdef INDICATOR_SOUNDMENU_WITH_IND3 +--- alsaMixer/src/applet-notifications.c.orig 2017-04-28 15:48:09.445991115 +0200 ++++ alsaMixer/src/applet-notifications.c 2017-04-28 15:48:21.549969521 +0200 +@@ -17,6 +17,7 @@ + * along with this program. If not, see . + */ + ++#define __timespec_defined 1 + #include + + #include "applet-struct.h" + +--- alsaMixer/src/applet-draw.c.orig 2017-04-28 15:51:33.625626869 +0200 ++++ alsaMixer/src/applet-draw.c 2017-04-28 15:51:15.744658767 +0200 +@@ -19,6 +19,7 @@ + + #include + #include ++#define __timespec_defined 1 + #include + + #include "applet-struct.h" + +--- alsaMixer/src/applet-backend-alsamixer.c.orig 2017-04-28 15:56:14.587125649 +0200 ++++ alsaMixer/src/applet-backend-alsamixer.c 2017-04-28 15:55:56.683157588 +0200 +@@ -20,6 +20,7 @@ + #include + #include + #include ++#define __timespec_defined 1 + #include + + #include "applet-struct.h" + +--- Sound-Effects/src/applet-struct.h.orig 2017-04-28 16:00:52.732629452 +0200 ++++ Sound-Effects/src/applet-struct.h 2017-04-28 16:00:36.919657661 +0200 +@@ -24,6 +24,8 @@ + #include + #include + #define _STRUCT_TIMEVAL ++#define __timeval_defined 1 ++#define __timespec_defined 1 + #include + + //\___________ structure containing the applet's configuration parameters. + diff --git a/srcpkgs/cairo-dock-plugins/template b/srcpkgs/cairo-dock-plugins/template index 53dbdfb21d..7818a6863a 100644 --- a/srcpkgs/cairo-dock-plugins/template +++ b/srcpkgs/cairo-dock-plugins/template @@ -1,7 +1,7 @@ # Template file for 'cairo-dock-plugins' pkgname=cairo-dock-plugins version=3.4.1 -revision=3 +revision=4 build_style=cmake hostmakedepends="pkg-config" # XXX libetpan, libdbusmenu, etc