mirror of https://github.com/postgres/postgres
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
879 B
35 lines
879 B
![]()
30 years ago
|
/*-------------------------------------------------------------------------
|
||
|
*
|
||
|
* port-protos.h--
|
||
![]()
28 years ago
|
* port-specific prototypes for SunOS 4
|
||
![]()
30 years ago
|
*
|
||
|
*
|
||
|
* Copyright (c) 1994, Regents of the University of California
|
||
|
*
|
||
|
* port-protos.h,v 1.2 1995/05/25 22:51:03 andrew Exp
|
||
|
*
|
||
|
*-------------------------------------------------------------------------
|
||
|
*/
|
||
|
#ifndef PORT_PROTOS_H
|
||
|
#define PORT_PROTOS_H
|
||
|
|
||
![]()
28 years ago
|
#include "fmgr.h" /* for func_ptr */
|
||
![]()
30 years ago
|
#include "utils/dynamic_loader.h"
|
||
|
|
||
|
/* dynloader.c */
|
||
|
|
||
![]()
29 years ago
|
#ifndef PRE_BSDI_2_1
|
||
![]()
28 years ago
|
#include <dlfcn.h>
|
||
|
#define pg_dlopen(f) dlopen(f, 1)
|
||
|
#define pg_dlsym dlsym
|
||
|
#define pg_dlclose dlclose
|
||
|
#define pg_dlerror dlerror
|
||
![]()
30 years ago
|
#else
|
||
![]()
28 years ago
|
#define pg_dlsym(handle, funcname) ((func_ptr) dld_get_func((funcname)))
|
||
|
#define pg_dlclose(handle) ({ dld_unlink_by_file(handle, 1); free(handle); })
|
||
![]()
30 years ago
|
#endif
|
||
|
|
||
|
/* port.c */
|
||
|
|
||
![]()
28 years ago
|
#endif /* PORT_PROTOS_H */
|