summaryrefslogtreecommitdiff
path: root/databases/postgresql92/files/dynloader-ltdl.h
blob: e8e46620033c3ce0f7d8e8e997c51144dfa653ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* $NetBSD: dynloader-ltdl.h,v 1.1 2012/10/05 21:03:10 adam Exp $ */

/*
 * dynamic loader based on libltdl
 */
#ifndef PORT_PROTOS_H
#define PORT_PROTOS_H

#include <ltdl.h>
#include "utils/dynamic_loader.h"

#define pg_dlopen(a)		((void *)lt_dlopen(a))
#define pg_dlsym(a,b)		lt_dlsym((lt_dlhandle)(a), (b))
#define pg_dlclose(a)		lt_dlclose((lt_dlhandle)(a))
#define pg_dlerror		lt_dlerror

#endif   /* PORT_PROTOS_H */