mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-05 19:09:58 +08:00
Just reviewed what I changed as far a dlopen/etc are concerned, and determined
that the "fix" is wrong...
This commit is contained in:
parent
7bfb924aea
commit
d57d3626cb
@ -45,8 +45,6 @@ static char sccsid[] = "@(#)dl.c 5.4 (Berkeley) 2/23/91";
|
||||
|
||||
#include "port-protos.h"
|
||||
|
||||
#if !defined(__FreeBSD__)
|
||||
|
||||
static char error_message[BUFSIZ];
|
||||
|
||||
char *
|
||||
@ -103,5 +101,3 @@ BSD44_derived_dlclose(void *handle)
|
||||
dlclose(handle);
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif /* __FreeBSD__ */
|
||||
|
@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: port-protos.h,v 1.4 1997/01/03 04:59:01 scrappy Exp $
|
||||
* $Id: port-protos.h,v 1.5 1997/01/05 23:41:43 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -35,17 +35,10 @@
|
||||
* begin with an underscore is fairly tricky, and some versions of
|
||||
* NetBSD (like 1.0, and 1.0A pre June 1995) have no dlerror.)
|
||||
*/
|
||||
#if !defined(__FreeBSD__)
|
||||
# define pg_dlopen(f) BSD44_derived_dlopen(f, 1)
|
||||
# define pg_dlsym BSD44_derived_dlsym
|
||||
# define pg_dlclose BSD44_derived_dlclose
|
||||
# define pg_dlerror BSD44_derived_dlerror
|
||||
#else
|
||||
# define pg_dlopen(f) dlopen(f, 1)
|
||||
# define pg_dlsym dlsym
|
||||
# define pg_dlclose dlclose
|
||||
# define pg_dlerror dlerror
|
||||
#endif
|
||||
|
||||
char * BSD44_derived_dlerror(void);
|
||||
void * BSD44_derived_dlopen(const char *filename, int num);
|
||||
|
Loading…
Reference in New Issue
Block a user