include dlfcn.h on FreeBSD for dlopen

This commit is contained in:
rdb 2011-03-02 20:35:09 +00:00
parent e991505623
commit c7bf95c53a

View File

@ -44,8 +44,9 @@
#ifdef IS_FREEBSD #ifdef IS_FREEBSD
extern char **environ; extern char **environ;
// This is for Link_map. // For Link_map and dlinfo.
#include <link.h> #include <link.h>
#include <dlfcn.h>
// This is for sysctl. // This is for sysctl.
#include <sys/types.h> #include <sys/types.h>