gentoo/dev-ruby/ruby-shout/files/ruby-shout-2.2.2-errno.patch
Hans de Graaff 21d6550942
dev-ruby/ruby-shout: fix compilation with modern c
errno is already defined in ruby header files so it cannot be used for
an int variable.

Closes: https://bugs.gentoo.org/922746
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
2024-01-23 14:07:41 +01:00

14 lines
482 B
Diff

--- a/ext/shout_ext.c 2024-01-23 14:02:08.404056464 +0100
+++ b/ext/shout_ext.c 2024-01-23 14:03:47.152700002 +0100
@@ -91,8 +91,8 @@
/* For metadata-related errors, which don't relate to a shout_t, so we can't
* use shout_get_errno or shout_get_error on them.
*/
-static void raise_nonspecific_shout_error(int errno) {
- rb_raise(cShoutError, "%d", errno);
+static void raise_nonspecific_shout_error(int err_no) {
+ rb_raise(cShoutError, "%d", err_no);
}
/*