]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - include/dlfcn.h
man: tc-taprio.8: fix syntax error
[mirror_iproute2.git] / include / dlfcn.h
index b0be5a0f49f11518178e38cd743a50a0496fe79f..1d8890adff6adcc10e7bdcefa524f9f5c7d7a16b 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 /*
  * Stub dlfcn implementation for systems that lack shared library support
  * but obviously can still reference compiled-in symbols.
@@ -8,6 +9,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)
@@ -18,7 +20,7 @@ static inline void *dlopen(const char *file, int flag)
                return NULL;
 }
 
-extern void *_dlsym(const char *sym);
+void *_dlsym(const char *sym);
 static inline void *dlsym(void *handle, const char *sym)
 {
        if (handle != _FAKE_DLFCN_HDL)