Commit 59bf879f authored by Bruce Momjian's avatar Bruce Momjian

Move -DPLPERL_HAVE_UID_GID to the plperl Makefile, for Win32 only.

parent 6a640d1e
# Makefile for PL/Perl # 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 subdir = src/pl/plperl
top_builddir = ../../.. top_builddir = ../../..
...@@ -25,6 +25,7 @@ ifeq ($(PORTNAME), win32) ...@@ -25,6 +25,7 @@ ifeq ($(PORTNAME), win32)
perl_archlibexp := $(subst \,/,$(perl_archlibexp)) perl_archlibexp := $(subst \,/,$(perl_archlibexp))
perl_privlibexp := $(subst \,/,$(perl_privlibexp)) perl_privlibexp := $(subst \,/,$(perl_privlibexp))
perl_embed_ldflags := -L $(perl_archlibexp)/CORE -lperl58 perl_embed_ldflags := -L $(perl_archlibexp)/CORE -lperl58
override CPPFLAGS += -DPLPERL_HAVE_UID_GID
endif endif
override CPPFLAGS := -I$(srcdir) $(CPPFLAGS) -I$(perl_archlibexp)/CORE override CPPFLAGS := -I$(srcdir) $(CPPFLAGS) -I$(perl_archlibexp)/CORE
......
/* this must be first: */ /* this must be first: */
#define PLPERL_HAVE_UID_GID
#include "postgres.h" #include "postgres.h"
/* perl stuff */ /* perl stuff */
......
...@@ -33,11 +33,10 @@ ...@@ -33,11 +33,10 @@
* ENHANCEMENTS, OR MODIFICATIONS. * ENHANCEMENTS, OR MODIFICATIONS.
* *
* IDENTIFICATION * 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" #include "postgres.h"
/* system stuff */ /* system stuff */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment