$NetBSD: patch-aa,v 1.1 2010/09/10 04:42:58 taca Exp $

Don't use deprecated constant PLATFORM, use RUBY_PLATFORM.

--- ext/extconf.rb.orig	2010-08-27 23:28:37.000000000 +0000
+++ ext/extconf.rb
@@ -1,13 +1,13 @@
 
 
 # windows compatibility, need different library name
-if(PLATFORM =~ /mingw|mswin/) then
+if(RUBY_PLATFORM =~ /mingw|mswin/) then
   $libname = '/ms/libpq'
 else
   $libname = 'pq'
 end
 
-if(PLATFORM =~ /darwin/) then
+if(RUBY_PLATFORM =~ /darwin/) then
 	# test if postgresql is probably universal
 	bindir = (IO.popen("pg_config --bindir").readline.chomp rescue nil)
 	filetype = (IO.popen("file #{bindir}/pg_config").
