diff options
author | M.Dinslage <daedra1980@gmail.com> | 2021-12-27 20:25:22 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-12-30 11:20:10 +0700 |
commit | c434e661ae5dfa36d64f6e76f97494ef2d1a2faf (patch) | |
tree | 1865122c3506e2bb1c3b30a4ea054884d060e27e /multimedia | |
parent | 00aa364d5b5dbeb871da0205e3fb528026a7d007 (diff) |
multimedia/tvtime: Fix building with the newer compiler.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/tvtime/0001-Fix-warning-implicit-declaration-of-function-minor-m.patch | 31 | ||||
-rw-r--r-- | multimedia/tvtime/tvtime.SlackBuild | 2 |
2 files changed, 33 insertions, 0 deletions
diff --git a/multimedia/tvtime/0001-Fix-warning-implicit-declaration-of-function-minor-m.patch b/multimedia/tvtime/0001-Fix-warning-implicit-declaration-of-function-minor-m.patch new file mode 100644 index 000000000000..24256d722d0a --- /dev/null +++ b/multimedia/tvtime/0001-Fix-warning-implicit-declaration-of-function-minor-m.patch @@ -0,0 +1,31 @@ +From bfa96fec44b7db78b43b9b8d20d7ca02616f70ed Mon Sep 17 00:00:00 2001 +From: Hans de Goede <hdegoede@redhat.com> +Date: Mon, 13 Aug 2018 17:41:57 +0200 +Subject: Fix: "warning: implicit declaration of function 'minor' / 'major'" + errors + +Fix the "warning: implicit declaration of function 'minor' / 'major'" +compiler warnings which ultimately lead to the following build error: + +src/get_media_devices.c:522: undefined reference to `major' + +Signed-off-by: Hans de Goede <hdegoede@redhat.com> +--- + src/get_media_devices.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/get_media_devices.c b/src/get_media_devices.c +index 619734ea..453b0677 100644 +--- a/src/get_media_devices.c ++++ b/src/get_media_devices.c +@@ -23,6 +23,7 @@ + #include <unistd.h> + #include <sys/types.h> + #include <sys/stat.h> ++#include <sys/sysmacros.h> + #include <string.h> + #include <stdlib.h> + #include <malloc.h> +-- +2.11.0 + diff --git a/multimedia/tvtime/tvtime.SlackBuild b/multimedia/tvtime/tvtime.SlackBuild index bb81776e7c38..b1756202ea56 100644 --- a/multimedia/tvtime/tvtime.SlackBuild +++ b/multimedia/tvtime/tvtime.SlackBuild @@ -80,6 +80,8 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +patch -p1 < $CWD/0001-Fix-warning-implicit-declaration-of-function-minor-m.patch + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ |