mirror of https://github.com/postgres/postgres
anyway, the rest being due to them not being kept in sync. Add configure test for lorder and use it (on Solaris) when found.REL7_1_STABLE
parent
cbe5f73aa0
commit
4d76a801c6
@ -1,4 +1,4 @@ |
||||
/* Dummy file used for nothing at this point
|
||||
* |
||||
* see solaris_i386.h |
||||
* see solaris.h |
||||
*/ |
@ -0,0 +1,16 @@ |
||||
/* $Header: /cvsroot/pgsql/src/backend/port/dynloader/solaris.h,v 1.1 2000/10/10 21:22:23 petere Exp $ */ |
||||
|
||||
#ifndef DYNLOADER_SOLARIS_H |
||||
#define DYNLOADER_SOLARIS_H |
||||
|
||||
#include "config.h" |
||||
#include <dlfcn.h> |
||||
#include "fmgr.h" |
||||
#include "utils/dynamic_loader.h" |
||||
|
||||
#define pg_dlopen(f) dlopen(f,1) |
||||
#define pg_dlsym dlsym |
||||
#define pg_dlclose dlclose |
||||
#define pg_dlerror dlerror |
||||
|
||||
#endif /* DYNLOADER_SOLARIS_H */ |
@ -1,35 +0,0 @@ |
||||
/*-------------------------------------------------------------------------
|
||||
* |
||||
* port_protos.h |
||||
* port-specific prototypes for SunOS 4 |
||||
* |
||||
* |
||||
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc |
||||
* Portions Copyright (c) 1994, Regents of the University of California |
||||
* |
||||
* $Id: solaris_i386.h,v 1.5 2000/01/26 05:56:44 momjian Exp $ |
||||
* |
||||
*------------------------------------------------------------------------- |
||||
*/ |
||||
#ifndef PORT_PROTOS_H |
||||
#define PORT_PROTOS_H |
||||
|
||||
#include <dlfcn.h> |
||||
#include "fmgr.h" |
||||
#include "utils/dynamic_loader.h" |
||||
|
||||
/* dynloader.c */ |
||||
/*
|
||||
* Dynamic Loader on SunOS 4. |
||||
* |
||||
* this dynamic loader uses the system dynamic loading interface for shared |
||||
* libraries (ie. dlopen/dlsym/dlclose). The user must specify a shared |
||||
* library as the file to be dynamically loaded. |
||||
* |
||||
*/ |
||||
#define pg_dlopen(f) dlopen(f,1) |
||||
#define pg_dlsym dlsym |
||||
#define pg_dlclose dlclose |
||||
#define pg_dlerror dlerror |
||||
|
||||
#endif /* PORT_PROTOS_H */ |
@ -1,4 +0,0 @@ |
||||
/* Dummy file used for nothing at this point
|
||||
* |
||||
* see solaris_i386.h |
||||
*/ |
@ -1,39 +0,0 @@ |
||||
/*-------------------------------------------------------------------------
|
||||
* |
||||
* port_protos.h |
||||
* port-specific prototypes for SunOS 4 |
||||
* |
||||
* |
||||
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc |
||||
* Portions Copyright (c) 1994, Regents of the University of California |
||||
* |
||||
* $Id: solaris_sparc.h,v 1.5 2000/01/26 05:56:44 momjian Exp $ |
||||
* |
||||
*------------------------------------------------------------------------- |
||||
*/ |
||||
#ifndef PORT_PROTOS_H |
||||
#define PORT_PROTOS_H |
||||
|
||||
#include <netinet/in.h> /* For struct in_addr */ |
||||
#include <arpa/inet.h> |
||||
|
||||
#include <dlfcn.h> |
||||
|
||||
#include "fmgr.h" |
||||
#include "utils/dynamic_loader.h" |
||||
|
||||
/* dynloader.c */ |
||||
/*
|
||||
* Dynamic Loader on SunOS 4. |
||||
* |
||||
* this dynamic loader uses the system dynamic loading interface for shared |
||||
* libraries (ie. dlopen/dlsym/dlclose). The user must specify a shared |
||||
* library as the file to be dynamically loaded. |
||||
* |
||||
*/ |
||||
#define pg_dlopen(f) dlopen(f,1) |
||||
#define pg_dlsym dlsym |
||||
#define pg_dlclose dlclose |
||||
#define pg_dlerror dlerror |
||||
|
||||
#endif /* PORT_PROTOS_H */ |
@ -0,0 +1,64 @@ |
||||
/* $Header: /cvsroot/pgsql/src/include/port/solaris.h,v 1.1 2000/10/10 21:22:26 petere Exp $ */ |
||||
|
||||
#define USE_POSIX_TIME |
||||
#define NO_EMPTY_STMTS |
||||
#define SYSV_DIRENT |
||||
#define HAS_TEST_AND_SET |
||||
typedef unsigned char slock_t; |
||||
|
||||
/*
|
||||
* Sort this out for all operting systems some time. The __xxx |
||||
* symbols are defined on both GCC and Solaris CC, although GCC |
||||
* doesn't document them. The __xxx__ symbols are only on GCC. |
||||
*/ |
||||
#if defined(__i386) && !defined(__i386__) |
||||
# define __i386__ |
||||
#endif |
||||
|
||||
#if defined(__sparc) && !defined(__sparc__) |
||||
# define __sparc__ |
||||
#endif |
||||
|
||||
#if defined(__i386__) |
||||
# include <sys/isa_defs.h> |
||||
#endif |
||||
|
||||
#ifndef BIG_ENDIAN |
||||
#define BIG_ENDIAN 4321 |
||||
#endif |
||||
#ifndef LITTLE_ENDIAN |
||||
#define LITTLE_ENDIAN 1234 |
||||
#endif |
||||
#ifndef PDP_ENDIAN |
||||
#define PDP_ENDIAN 3412 |
||||
#endif |
||||
|
||||
#ifndef BYTE_ORDER |
||||
# ifdef __sparc__ |
||||
# define BYTE_ORDER BIG_ENDIAN |
||||
# endif |
||||
# ifdef __i386__ |
||||
# define BYTE_ORDER LITTLE_ENDIAN |
||||
# endif |
||||
#endif |
||||
|
||||
|
||||
#ifndef NAN |
||||
|
||||
# if defined(__GNUC__) && defined(__i386__) |
||||
|
||||
# ifndef __nan_bytes |
||||
# define __nan_bytes { 0, 0, 0, 0, 0, 0, 0xf8, 0x7f } |
||||
# endif |
||||
|
||||
# define NAN \ |
||||
(__extension__ ((union { unsigned char __c[8]; double __d; }) \
|
||||
{ __nan_bytes }).__d) |
||||
|
||||
# else /* not GNUC and i386 */ |
||||
|
||||
# define NAN (0.0/0.0) |
||||
|
||||
# endif /* GCC. */ |
||||
|
||||
#endif /* not NAN */ |
@ -1,41 +0,0 @@ |
||||
#define USE_POSIX_TIME |
||||
#define NO_EMPTY_STMTS |
||||
#define SYSV_DIRENT |
||||
#define HAS_TEST_AND_SET |
||||
typedef unsigned char slock_t; |
||||
|
||||
#include "sys/isa_defs.h" |
||||
|
||||
#ifndef BIG_ENDIAN |
||||
#define BIG_ENDIAN 4321 |
||||
#endif |
||||
#ifndef LITTLE_ENDIAN |
||||
#define LITTLE_ENDIAN 1234 |
||||
#endif |
||||
#ifndef PDP_ENDIAN |
||||
#define PDP_ENDIAN 3412 |
||||
#endif |
||||
#ifndef BYTE_ORDER |
||||
#define BYTE_ORDER LITTLE_ENDIAN |
||||
#endif |
||||
|
||||
#ifndef NAN |
||||
|
||||
#ifndef __nan_bytes |
||||
#define __nan_bytes { 0, 0, 0, 0, 0, 0, 0xf8, 0x7f } |
||||
#endif /* __nan_bytes */ |
||||
|
||||
#ifdef __GNUC__ |
||||
#define NAN \ |
||||
(__extension__ ((union { unsigned char __c[8]; \
|
||||
double __d; }) \
|
||||
{ __nan_bytes }).__d) |
||||
|
||||
#else /* Not GCC. */ |
||||
#define NAN (*(__const double *) __nan) |
||||
#endif /* GCC. */ |
||||
#endif /* NAN */ |
||||
|
||||
#ifndef index |
||||
#define index strchr |
||||
#endif |
@ -1,18 +0,0 @@ |
||||
#define USE_POSIX_TIME |
||||
#define NO_EMPTY_STMTS |
||||
#define SYSV_DIRENT |
||||
#define HAS_TEST_AND_SET |
||||
typedef unsigned char slock_t; |
||||
|
||||
#ifndef BIG_ENDIAN |
||||
#define BIG_ENDIAN 4321 |
||||
#endif |
||||
#ifndef LITTLE_ENDIAN |
||||
#define LITTLE_ENDIAN 1234 |
||||
#endif |
||||
#ifndef PDP_ENDIAN |
||||
#define PDP_ENDIAN 3412 |
||||
#endif |
||||
#ifndef BYTE_ORDER |
||||
#define BYTE_ORDER BIG_ENDIAN |
||||
#endif |
@ -0,0 +1,4 @@ |
||||
# $Header: /cvsroot/pgsql/src/makefiles/Makefile.solaris,v 1.1 2000/10/10 21:22:28 petere Exp $
|
||||
|
||||
%.so: %.o |
||||
$(LD) -G -Bdynamic -o $@ $<
|
@ -1,2 +0,0 @@ |
||||
%.so: %.o |
||||
$(LD) -G -Bdynamic -o $@ $<
|
@ -1,5 +0,0 @@ |
||||
%.so: %.o |
||||
$(LD) -G -Bdynamic -o $@ $<
|
||||
|
||||
MK_NO_LORDER=true
|
||||
|
@ -1,11 +0,0 @@ |
||||
DLSUFFIX=.so |
||||
|
||||
if test "$GCC" = yes ; then |
||||
AROPT=crs |
||||
CFLAGS= |
||||
SHARED_LIB=-fPIC |
||||
else |
||||
AROPT=cq |
||||
CFLAGS= |
||||
SHARED_LIB=-KPIC |
||||
fi |
Loading…
Reference in new issue