]> git.eshelyaron.com Git - emacs.git/commit
Port better to FreeBSD’s dlfunc vs dlsym
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 24 Nov 2015 02:48:42 +0000 (18:48 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 24 Nov 2015 03:01:51 +0000 (19:01 -0800)
commitda8c7ca2647d2e111a415f59c6b59053a19bdb61
tree04dd13e37031bbee8b6ff6c0365db28b846c5a5c
parentceaca7bec6adf5735d51c1ca7efea5a2e05f470e
Port better to FreeBSD’s dlfunc vs dlsym

This avoids warnings when converting between void * and
function pointers, which strict C11 does not allow.
* configure.ac (dlfunc): Check for existence.
* src/dynlib.c (dlfunc) [!HAVE_DLFUNC]: New macro.
(dynlib_func): New function.
* src/dynlib.h (dynlib_function_ptr, dynlib_func): New decls.
* src/emacs-module.c (Fmodule_load): Use dynlib_func, not
dynlib_sym, for function pointers.
configure.ac
src/dynlib.c
src/dynlib.h
src/emacs-module.c