diff --git a/src/pl/plperl/GNUmakefile b/src/pl/plperl/GNUmakefile
index 873bf18acc2a99752e0c81120a4b6c4b539c2570..d1a2ac6fe78cbcbd8939cba3c61599fa65383f63 100644
--- a/src/pl/plperl/GNUmakefile
+++ b/src/pl/plperl/GNUmakefile
@@ -1,5 +1,5 @@
 # Makefile for PL/Perl
-# $PostgreSQL: pgsql/src/pl/plperl/GNUmakefile,v 1.15 2004/07/16 19:18:24 momjian Exp $
+# $PostgreSQL: pgsql/src/pl/plperl/GNUmakefile,v 1.16 2004/10/07 19:01:09 momjian Exp $
 
 subdir = src/pl/plperl
 top_builddir = ../../..
@@ -25,6 +25,7 @@ ifeq ($(PORTNAME), win32)
 perl_archlibexp := $(subst \,/,$(perl_archlibexp))
 perl_privlibexp := $(subst \,/,$(perl_privlibexp))
 perl_embed_ldflags := -L $(perl_archlibexp)/CORE -lperl58
+override CPPFLAGS += -DPLPERL_HAVE_UID_GID
 endif
 
 override CPPFLAGS := -I$(srcdir) $(CPPFLAGS) -I$(perl_archlibexp)/CORE
diff --git a/src/pl/plperl/SPI.xs b/src/pl/plperl/SPI.xs
index 8b52bd437823a3597cc937c8bf07759022174954..716d9a1e47b8bca663022b3ff364c3cdb763424e 100644
--- a/src/pl/plperl/SPI.xs
+++ b/src/pl/plperl/SPI.xs
@@ -1,5 +1,4 @@
 /* this must be first: */
-#define PLPERL_HAVE_UID_GID
 #include "postgres.h"
 
 /* perl stuff */
diff --git a/src/pl/plperl/plperl.c b/src/pl/plperl/plperl.c
index a6b3674794fc22084d527b1bec9baff38b8e8527..af174d7c838be4068279e3a49824d497d5f30b7e 100644
--- a/src/pl/plperl/plperl.c
+++ b/src/pl/plperl/plperl.c
@@ -33,11 +33,10 @@
  *	  ENHANCEMENTS, OR MODIFICATIONS.
  *
  * IDENTIFICATION
- *	  $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.53 2004/10/07 15:21:57 momjian Exp $
+ *	  $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.54 2004/10/07 19:01:09 momjian Exp $
  *
  **********************************************************************/
 
-#define PLPERL_HAVE_UID_GID
 #include "postgres.h"
 
 /* system stuff */