From 72a3902a664c7fbceb2034e28e444b28f96fa717 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 5 May 2002 00:03:29 +0000 Subject: Create an internal semaphore API that is not tied to SysV semaphores. As proof of concept, provide an alternate implementation based on POSIX semaphores. Also push the SysV shared-memory implementation into a separate file so that it can be replaced conveniently. --- src/pl/plperl/plperl.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'src/pl/plperl/plperl.c') diff --git a/src/pl/plperl/plperl.c b/src/pl/plperl/plperl.c index 5ba80b7b32c..d33188ae285 100644 --- a/src/pl/plperl/plperl.c +++ b/src/pl/plperl/plperl.c @@ -33,7 +33,7 @@ * ENHANCEMENTS, OR MODIFICATIONS. * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/pl/plperl/plperl.c,v 1.29 2002/03/06 18:50:26 momjian Exp $ + * $Header: /cvsroot/pgsql/src/pl/plperl/plperl.c,v 1.30 2002/05/05 00:03:29 tgl Exp $ * **********************************************************************/ @@ -62,22 +62,6 @@ #include "catalog/pg_type.h" /* perl stuff */ -/* - * Evil Code Alert - * - * both posgreSQL and perl try to do 'the right thing' - * and provide union semun if the platform doesn't define - * it in a system header. - * psql uses HAVE_UNION_SEMUN - * perl uses HAS_UNION_SEMUN - * together, they cause compile errors. - * If we need it, the psql headers above will provide it. - * So we tell perl that we have it. - */ -#ifndef HAS_UNION_SEMUN -#define HAS_UNION_SEMUN -#endif - #include "EXTERN.h" #include "perl.h" #include "XSUB.h" -- cgit v1.2.3