summaryrefslogtreecommitdiff
path: root/dev-ruby/serialport/files/serialport-1.3.2-clang16-build-fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ruby/serialport/files/serialport-1.3.2-clang16-build-fix.patch')
-rw-r--r--dev-ruby/serialport/files/serialport-1.3.2-clang16-build-fix.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/dev-ruby/serialport/files/serialport-1.3.2-clang16-build-fix.patch b/dev-ruby/serialport/files/serialport-1.3.2-clang16-build-fix.patch
new file mode 100644
index 000000000000..9dd22090541c
--- /dev/null
+++ b/dev-ruby/serialport/files/serialport-1.3.2-clang16-build-fix.patch
@@ -0,0 +1,13 @@
+Bug: https://bugs.gentoo.org/883127
+Upstream PR: https://github.com/hparra/ruby-serialport/pull/75
+--- a/ext/native/posix_serialport_impl.c
++++ b/ext/native/posix_serialport_impl.c
+@@ -110,7 +110,7 @@ VALUE sp_create_impl(class, _port)
+ struct termios params;
+
+ NEWOBJ(sp, struct RFile);
+- OBJSETUP(sp, class, T_FILE);
++ OBJSETUP((VALUE)sp, class, T_FILE);
+ MakeOpenFile((VALUE) sp, fp);
+
+ switch(TYPE(_port))