mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2026-01-06 18:59:38 +00:00
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:
parent
263c894fd1
commit
e7b24b67db
@ -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"
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user