On some platforms, shared libraries are not used. The stub code
need some updating to not generate errors.
+/*
+ * This file creates a dummy version of dynamic loading
+ * for environments where dynamic linking
+ * is not used or available.
+ */
+
#include <string.h>
+#include "dlfcn.h"
+
void *_dlsym(const char *sym)
{
#include "static-syms.h"
#else
#define RTLD_LAZY 0
+#define RTLD_GLOBAL 1
#define _FAKE_DLFCN_HDL (void *)0xbeefcafe
static inline void *dlopen(const char *file, int flag)
+/*
+ * This file creates a dummy version of dynamic loading
+ * for environments where dynamic linking
+ * is not used or available.
+ */
+
#include <string.h>
+#include "dlfcn.h"
+
void *_dlsym(const char *sym)
{
#include "static-syms.h"
+/*
+ * This file creates a dummy version of dynamic loading
+ * for environments where dynamic linking
+ * is not used or available.
+ */
+
#include <string.h>
+#include "dlfcn.h"
+
void *_dlsym(const char *sym)
{
#include "static-syms.h"