Skip to content

Commit

Permalink
media-gfx/librecad: add a patch to fix building with clang-17
Browse files Browse the repository at this point in the history
fix missing FILE declaration in lib/debug/rs_debug.h

Signed-off-by: Denis Pronin <dannftk@yandex.ru>
  • Loading branch information
dpronin committed Apr 4, 2024
1 parent aef62eb commit a70352c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions media-gfx/librecad/files/librecad-2.2.0-clang.patch
@@ -0,0 +1,10 @@
--- a/librecad/src/lib/debug/rs_debug.h
+++ b/librecad/src/lib/debug/rs_debug.h
@@ -28,6 +28,7 @@
#ifndef RS_DEBUG_H
#define RS_DEBUG_H

+#include <cstdio>
#include <iosfwd>
#ifdef __hpux
#include <sys/_size_t.h>
4 changes: 4 additions & 0 deletions media-gfx/librecad/librecad-2.2.0.ebuild
Expand Up @@ -40,6 +40,10 @@ BDEPEND="
dev-qt/linguist-tools:5
"

PATCHES=(
"${FILESDIR}/${P}-clang.patch"
)

src_prepare() {
default

Expand Down

0 comments on commit a70352c

Please sign in to comment.