Commit e7b24b67 authored by Stephen Hemminger's avatar Stephen Hemminger

Fix build when shared libraries are disabled

On some platforms, shared libraries are not used. The stub code
need some updating to not generate errors.
parent 263c894f
/*
* 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"
......
......@@ -8,6 +8,7 @@
#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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment