From 59bf879f128512598678e8d3d3361b2900711b8c Mon Sep 17 00:00:00 2001 From: Bruce Momjian <bruce@momjian.us> Date: Thu, 7 Oct 2004 19:01:09 +0000 Subject: [PATCH] Move -DPLPERL_HAVE_UID_GID to the plperl Makefile, for Win32 only. --- src/pl/plperl/GNUmakefile | 3 ++- src/pl/plperl/SPI.xs | 1 - src/pl/plperl/plperl.c | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/pl/plperl/GNUmakefile b/src/pl/plperl/GNUmakefile index 873bf18acc2..d1a2ac6fe78 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 8b52bd43782..716d9a1e47b 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 a6b3674794f..af174d7c838 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 */ -- GitLab