mirror of
https://github.com/postgres/postgres.git
synced 2025-08-31 17:02:12 +03:00
are now separate files "postgres.h" and "postgres_fe.h", which are meant to be the primary include files for backend .c files and frontend .c files respectively. By default, only include files meant for frontend use are installed into the installation include directory. There is a new make target 'make install-all-headers' that adds the whole content of the src/include tree to the installed fileset, for use by people who want to develop server-side code without keeping the complete source tree on hand. Cleaned up a whole lot of crufty and inconsistent header inclusions.
43 lines
1.0 KiB
C
43 lines
1.0 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* port_protos.h
|
|
* port-specific prototypes for Linux
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $Id: linux.h,v 1.11 2001/02/10 02:31:26 tgl Exp $
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef PORT_PROTOS_H
|
|
#define PORT_PROTOS_H
|
|
|
|
#include "utils/dynamic_loader.h"
|
|
#ifdef __ELF__
|
|
#include <dlfcn.h>
|
|
#endif
|
|
|
|
/* dynloader.c */
|
|
|
|
#ifndef __ELF__
|
|
#ifndef HAVE_DLD_H
|
|
#define pg_dlsym(handle, funcname) (NULL)
|
|
#define pg_dlclose(handle) ({})
|
|
#else
|
|
#define pg_dlsym(handle, funcname) ((PGFunction) dld_get_func((funcname)))
|
|
#define pg_dlclose(handle) ({ dld_unlink_by_file(handle, 1); free(handle); })
|
|
#endif
|
|
#else
|
|
/* #define pg_dlopen(f) dlopen(f, 1) */
|
|
#define pg_dlopen(f) dlopen(f, 2)
|
|
#define pg_dlsym dlsym
|
|
#define pg_dlclose dlclose
|
|
#define pg_dlerror dlerror
|
|
#endif
|
|
|
|
/* port.c */
|
|
|
|
#endif /* PORT_PROTOS_H */
|