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.
This commit is contained in:
Stephen Hemminger 2013-03-13 08:29:59 -07:00
parent 263c894fd1
commit e7b24b67db
4 changed files with 25 additions and 0 deletions

View File

@ -1,4 +1,12 @@
/*
* 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"

View File

@ -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)

View File

@ -1,4 +1,12 @@
/*
* 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"

View File

@ -1,4 +1,12 @@
/*
* 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"