mirror of
https://github.com/postgres/postgres.git
synced 2025-09-03 15:22:11 +03:00
From: Tom I Helbekkmo <tih@Hamartun.Priv.NO>
Apart from this Makefile hack, all I've done is to make dynamically loaded code modules fail properly (as was already done for __mips__, although I think this is too loose: I believe NetBSD for the pmax can do dynamic linking), and to add test-and-set lock handling. As Bruce suggested, this is done in a maximally efficient inlined way: I was not aware that this code was so important, speed-wise.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/* A lexical scanner generated by flex */
|
||||
|
||||
/* Scanner skeleton version:
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/scan.c,v 1.12 1998/02/11 03:56:08 thomas Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/scan.c,v 1.13 1998/02/13 05:09:15 scrappy Exp $
|
||||
*/
|
||||
|
||||
#define FLEX_SCANNER
|
||||
@@ -539,7 +539,7 @@ char *yytext;
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/scan.c,v 1.12 1998/02/11 03:56:08 thomas Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/scan.c,v 1.13 1998/02/13 05:09:15 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
@@ -61,7 +61,7 @@ BSD44_derived_dlerror(void)
|
||||
void *
|
||||
BSD44_derived_dlopen(const char *file, int num)
|
||||
{
|
||||
#ifdef __mips__
|
||||
#if defined(__mips__) || (defined(__NetBSD__) && defined(vax))
|
||||
sprintf(error_message, "dlopen (%s) not supported", file);
|
||||
return NULL;
|
||||
#else
|
||||
@@ -78,7 +78,7 @@ BSD44_derived_dlopen(const char *file, int num)
|
||||
void *
|
||||
BSD44_derived_dlsym(void *handle, const char *name)
|
||||
{
|
||||
#ifdef __mips__
|
||||
#if defined(__mips__) || (defined(__NetBSD__) && defined(vax))
|
||||
sprintf(error_message, "dlsym (%s) failed", name);
|
||||
return NULL;
|
||||
#else
|
||||
@@ -101,7 +101,8 @@ BSD44_derived_dlsym(void *handle, const char *name)
|
||||
void
|
||||
BSD44_derived_dlclose(void *handle)
|
||||
{
|
||||
#ifndef __mips__
|
||||
#if defined(__mips__) || (defined(__NetBSD__) && defined(vax))
|
||||
#else
|
||||
dlclose(handle);
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user