From fed587fee58614570a7a34ea52584357effb817a Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sun, 8 Sep 2024 13:59:28 +0100 Subject: 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. --- src/os.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/os.c') 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 -- cgit v1.2.3