mirror of
https://github.com/postgres/postgres.git
synced 2025-07-20 05:03:10 +03:00
Re-run pgindent with updated list of typedefs. (Updated README should
avoid this problem in the future.)
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
* If dlopen() is available (Darwin 10.3 and later), we just use it.
|
||||
* Otherwise we emulate it with the older, now deprecated, NSLinkModule API.
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/backend/port/dynloader/darwin.c,v 1.12 2007/11/15 21:14:37 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/port/dynloader/darwin.c,v 1.13 2007/11/15 22:25:15 momjian Exp $
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
@ -75,13 +75,14 @@ pg_dlclose(void *handle)
|
||||
PGFunction
|
||||
pg_dlsym(void *handle, char *funcname)
|
||||
{
|
||||
NSSymbol symbol;
|
||||
NSSymbol symbol;
|
||||
char *symname = (char *) malloc(strlen(funcname) + 2);
|
||||
|
||||
sprintf(symname, "_%s", funcname);
|
||||
if (NSIsSymbolNameDefined(symname))
|
||||
{
|
||||
symbol = NSLookupAndBindSymbol(symname);
|
||||
|
||||
free(symname);
|
||||
return (PGFunction) NSAddressOfSymbol(symbol);
|
||||
}
|
||||
|
Reference in New Issue
Block a user