Skip to content

Instantly share code, notes, and snippets.

@dbussink
Created January 15, 2009 09:29
Show Gist options
  • Select an option

  • Save dbussink/47339 to your computer and use it in GitHub Desktop.

Select an option

Save dbussink/47339 to your computer and use it in GitHub Desktop.
diff --git a/do_postgres/ext/do_postgres_ext/extconf.rb b/do_postgres/ext/do_postgres_ext/extconf.rb
index a8e7631..116de1c 100644
--- a/do_postgres/ext/do_postgres_ext/extconf.rb
+++ b/do_postgres/ext/do_postgres_ext/extconf.rb
@@ -22,6 +22,7 @@ def pg_config(type)
end
def have_build_env
+ have_header('win32.h') if RUBY_PLATFORM =~ /mswin/
(have_library('pq') || have_library('libpq')) &&
have_header('libpq-fe.h') && have_header('libpq/libpq-fs.h') &&
have_header('postgres.h') && have_header('mb/pg_wchar.h') &&
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment