archivers/ruby-libarchive: Fix build with Ruby 3.0
This commit is contained in:
parent
d0fb915dca
commit
858f177831
2 changed files with 19 additions and 1 deletions
|
@ -1,7 +1,8 @@
|
|||
$NetBSD: distinfo,v 1.4 2016/01/04 02:48:05 taca Exp $
|
||||
$NetBSD: distinfo,v 1.5 2021/02/14 15:23:57 taca Exp $
|
||||
|
||||
SHA1 (libarchive-0.1.2.gem) = 5a7f5d5e9771f00c4ef2b030602381a29ff0eb11
|
||||
RMD160 (libarchive-0.1.2.gem) = 337296b1c31898ee7e438fd5e368fb821462c341
|
||||
SHA512 (libarchive-0.1.2.gem) = 5644e82f2a0573f084a96f11dd7a6b9b3f44e4f1190ee830d46f9ba6eeee7e498a78cee9f5af54fda5d27159f53c1c7d66bc9a9e2c8c1c18382848c0deb461ff
|
||||
Size (libarchive-0.1.2.gem) = 53760 bytes
|
||||
SHA1 (patch-ext_extconf.rb) = 82d1b14bc2c8785883c9a84d541eb18d5a080aa9
|
||||
SHA1 (patch-ext_libarchive__internal.h) = 67ad5a14f2d0437de737860768b1a924ecc9ef14
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
$NetBSD: patch-ext_libarchive__internal.h,v 1.1 2021/02/14 15:23:57 taca Exp $
|
||||
|
||||
* Fix for Ruby 3.
|
||||
|
||||
--- ext/libarchive_internal.h.orig 2021-01-11 05:55:51.159908652 +0000
|
||||
+++ ext/libarchive_internal.h
|
||||
@@ -28,7 +28,10 @@
|
||||
#include <archive_entry.h>
|
||||
|
||||
#include <ruby.h>
|
||||
+#include <ruby/version.h>
|
||||
+#if RUBY_API_VERSION_MAJOR < 3
|
||||
#include <rubysig.h>
|
||||
+#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#include "libarchive_win32.h"
|
Loading…
Reference in a new issue