mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
Closes: https://bugs.gentoo.org/887877 Closes: https://bugs.gentoo.org/887913 Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
38 lines
1.2 KiB
Diff
38 lines
1.2 KiB
Diff
https://bugs.gentoo.org/887877
|
|
https://github.com/DreamSourceLab/DSView/commit/2018baf0e1add4f9971dd02271ee8e6773cebfac
|
|
From: Lutz Freitag <lutz@gottliebtfreitag.de>
|
|
Date: Wed, 22 May 2024 21:29:54 +0200
|
|
Subject: [PATCH] added missing includes and a define to compile it for recent
|
|
machines
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -668,6 +668,8 @@ install(FILES DSView/icons/logo.svg DESTINATION share/pixmaps RENAME dsview.svg)
|
|
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
|
install(FILES DSView/DSView.desktop DESTINATION /usr/share/applications RENAME dsview.desktop)
|
|
|
|
+ add_compile_definitions(_DEFAULT_SOURCE)
|
|
+
|
|
if(IS_DIRECTORY /usr/lib/udev/rules.d)
|
|
install(FILES DSView/DreamSourceLab.rules DESTINATION /usr/lib/udev/rules.d RENAME 60-dreamsourcelab.rules)
|
|
elseif(IS_DIRECTORY /lib/udev/rules.d)
|
|
--- a/libsigrok4DSL/input/in_wav.c
|
|
+++ b/libsigrok4DSL/input/in_wav.c
|
|
@@ -24,6 +24,7 @@
|
|
#include <unistd.h>
|
|
#include <fcntl.h>
|
|
#include <string.h>
|
|
+#include <strings.h>
|
|
#include "../log.h"
|
|
#include <stdlib.h>
|
|
|
|
--- a/libsigrok4DSL/strutil.c
|
|
+++ b/libsigrok4DSL/strutil.c
|
|
@@ -21,6 +21,7 @@
|
|
#include "libsigrok-internal.h"
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
+#include <strings.h>
|
|
#include <stdio.h>
|
|
#include "log.h"
|
|
|