From: Lucas Kanashiro <kanashiro@ubuntu.com>
Date: Wed, 21 Aug 2024 17:41:43 -0300
Subject: Fix FTBFS with Ruby 3.3

Forwarded: no
---
 ext/extconf.rb      | 2 +-
 ext/utf8/extconf.rb | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ext/extconf.rb b/ext/extconf.rb
index d5f7e1f..93651d8 100644
--- a/ext/extconf.rb
+++ b/ext/extconf.rb
@@ -18,8 +18,8 @@ def have_library_ex(lib, func="main", headers=nil)
   end
 end
  
+$CFLAGS << ' -Wno-incompatible-pointer-types '
 dir_config("odbc")
-have_header("version.h")
 have_header("ruby/version.h")
 have_header("sql.h") || begin
   puts "ERROR: sql.h not found"
diff --git a/ext/utf8/extconf.rb b/ext/utf8/extconf.rb
index a7dfa20..5c6073d 100644
--- a/ext/utf8/extconf.rb
+++ b/ext/utf8/extconf.rb
@@ -39,8 +39,8 @@ def have_func_nolink(func, headers = nil, &b)
   end
 end
  
+$CFLAGS << ' -Wno-incompatible-pointer-types '
 dir_config("odbc")
-have_header("version.h")
 have_header("ruby/version.h")
 have_header("sql.h") || begin
   puts "ERROR: sql.h not found"
