mirror of https://github.com/postgres/postgres
Bruce Hartzler <bruceh@mail.utexas.edu>. It contains shared library support, regression test map, and the usual template files. The dynamic loader is missing, the spin lock code apparently doesn't assemble due to syntax problems, and semaphores are to be hoped for from Apple.REL7_1_STABLE
parent
dc0f5cb090
commit
b99ee7f37d
@ -0,0 +1,36 @@ |
|||||||
|
/*
|
||||||
|
* This is a place holder until someone supplies a dynamic loader |
||||||
|
* interface for this platform. |
||||||
|
* |
||||||
|
* $Header: /cvsroot/pgsql/src/backend/port/dynloader/darwin.c,v 1.1 2000/10/31 19:55:19 petere Exp $ |
||||||
|
*/ |
||||||
|
|
||||||
|
#include "postgres.h" |
||||||
|
#include "fmgr.h" |
||||||
|
#include "utils/dynamic_loader.h" |
||||||
|
#include "dynloader.h" |
||||||
|
|
||||||
|
void * |
||||||
|
pg_dlopen(char *filename) |
||||||
|
{ |
||||||
|
return (void *) NULL; |
||||||
|
} |
||||||
|
|
||||||
|
PGFunction |
||||||
|
pg_dlsym(void *handle, char *funcname) |
||||||
|
{ |
||||||
|
return NULL; |
||||||
|
} |
||||||
|
|
||||||
|
void |
||||||
|
pg_dlclose(void *handle) |
||||||
|
{ |
||||||
|
} |
||||||
|
|
||||||
|
char * |
||||||
|
pg_dlerror() |
||||||
|
{ |
||||||
|
static char errmsg[] = "the dynamic loader for darwin doesn't exist yet"; |
||||||
|
|
||||||
|
return errmsg; |
||||||
|
} |
@ -0,0 +1,5 @@ |
|||||||
|
/* $Header: /cvsroot/pgsql/src/backend/port/dynloader/darwin.h,v 1.1 2000/10/31 19:55:19 petere Exp $ */ |
||||||
|
void *pg_dlopen(char *filename); |
||||||
|
PGFunction pg_dlsym(void *handle, char *funcname); |
||||||
|
void pg_dlclose(void *handle); |
||||||
|
char *pg_dlerror(); |
@ -0,0 +1,6 @@ |
|||||||
|
#define HAS_TEST_AND_SET |
||||||
|
#if defined(__powerpc__) |
||||||
|
typedef unsigned int slock_t; |
||||||
|
#else |
||||||
|
typedef unsigned char slock_t; |
||||||
|
#endif |
@ -0,0 +1,7 @@ |
|||||||
|
AROPT = cr
|
||||||
|
|
||||||
|
DLSUFFIX = .so
|
||||||
|
CFLAGS_SL = -bundle -undefined suppress
|
||||||
|
|
||||||
|
%.so: %.o |
||||||
|
$(CC) $(CFLAGS) $(CFLAGS_SL) -o $@ $<
|
@ -0,0 +1,4 @@ |
|||||||
|
# regular cpp is broken in current development releases |
||||||
|
CC="$CC -traditional-cpp" |
||||||
|
# be on safe side while they sort out their compiler |
||||||
|
CFLAGS=-O0 |
Loading…
Reference in new issue