mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
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.
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user