mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:07:35 +00:00
LibC: Make dlfcn stubs extern "C" like the outside world expects.
This commit is contained in:
parent
ab9db3a717
commit
631894279b
2 changed files with 11 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
#include "dlfcn.h"
|
||||
#include <assert.h>
|
||||
#include <dlfcn.h>
|
||||
|
||||
extern "C" {
|
||||
|
||||
int dlclose(void*)
|
||||
{
|
||||
|
@ -20,3 +22,5 @@ void *dlsym(void*, const char*)
|
|||
{
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
#pragma once
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
#define RTLD_LAZY 1
|
||||
#define RTLD_NOW 2
|
||||
#define RTLD_GLOBAL 3
|
||||
|
@ -9,3 +13,5 @@ int dlclose(void*);
|
|||
char *dlerror();
|
||||
void *dlopen(const char*, int);
|
||||
void *dlsym(void*, const char*);
|
||||
|
||||
__END_DECLS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue