summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2024-09-08 13:59:28 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2024-09-08 13:59:28 +0100
commitfed587fee58614570a7a34ea52584357effb817a (patch)
treecb51f28698b663a2499de2c3090b280b1d39ff22 /src
parent43c64eee8dd08d61d029be5a30c0edc098d282ab (diff)
Fix a Linux woopsy in os.c I spotted the other day
Note: for all I know Linux isn't even compiling right now - I rarely actually test that. But still, might as well fix this since it's an obvious mistake.
Diffstat (limited to 'src')
-rw-r--r--src/os.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/os.c b/src/os.c
index cf5c262..e6d32e8 100644
--- a/src/os.c
+++ b/src/os.c
@@ -166,7 +166,6 @@ struct link_map {
static struct link_map *lmbase = 0;
void *os_dlhandle(const char *name) {
- extern struct link_map *lmbase; // note: defined in sst.c for now
if_cold (!lmbase) { // IMPORTANT: not thread safe. don't forget later!
lmbase = (struct link_map *)dlopen("libc.so.6", RTLD_LAZY | RTLD_NOLOAD);
dlclose(lmbase); // assume success