summaryrefslogtreecommitdiff
path: root/Libraries/LibC/dlfcn.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-09-29 21:02:13 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-09-29 21:02:13 +0200
commit6d7854919a95a6c276cf88598c9cac025b4db6d9 (patch)
tree941e3211ca0030ba2a4676a650c78a5b74396587 /Libraries/LibC/dlfcn.cpp
parent3900eebf15683d160047cb7ef7755fa6c1313ef2 (diff)
downloadserenity-6d7854919a95a6c276cf88598c9cac025b4db6d9.zip
LibC: Some build fixes for strange platforms
Patch from Anonymous.
Diffstat (limited to 'Libraries/LibC/dlfcn.cpp')
-rw-r--r--Libraries/LibC/dlfcn.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Libraries/LibC/dlfcn.cpp b/Libraries/LibC/dlfcn.cpp
index f4437b0272..7efb88d2c1 100644
--- a/Libraries/LibC/dlfcn.cpp
+++ b/Libraries/LibC/dlfcn.cpp
@@ -6,20 +6,24 @@ extern "C" {
int dlclose(void*)
{
ASSERT_NOT_REACHED();
+ return 0;
}
char* dlerror()
{
ASSERT_NOT_REACHED();
+ return nullptr;
}
void* dlopen(const char*, int)
{
ASSERT_NOT_REACHED();
+ return nullptr;
}
void* dlsym(void*, const char*)
{
ASSERT_NOT_REACHED();
+ return nullptr;
}
}