File: 0004-Fix-ruby3.0-FTBFS-extern-C.patch

package info (click to toggle)
ruby-kyotocabinet 1.34-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 488 kB
  • sloc: cpp: 3,501; ruby: 1,580; sh: 15; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 532 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From: Boyuan Yang <byang@debian.org>
Date: Tue, 9 Nov 2021 16:33:05 -0500
Subject: Fix ruby3.0 FTBFS (extern C)

---
 kyotocabinet.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/kyotocabinet.cc b/kyotocabinet.cc
index 7bd37df..dbc94c9 100644
--- a/kyotocabinet.cc
+++ b/kyotocabinet.cc
@@ -17,7 +17,6 @@
 
 namespace kc = kyotocabinet;
 
-extern "C" {
 
 #include <ruby.h>
 
@@ -27,6 +26,8 @@ extern "C" {
 #endif
 
 
+extern "C" {
+
 // precedent type declaration
 class CursorBurrow;
 struct SoftCursor;