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

This commit is contained in:
Bruce Momjian 2004-10-07 19:01:09 +00:00
parent 6a640d1e02
commit 59bf879f12
3 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -1,5 +1,4 @@
/* this must be first: */
#define PLPERL_HAVE_UID_GID
#include "postgres.h"
/* perl stuff */

View File

@ -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 */