aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-12-07 13:42:32 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-12-07 13:42:32 -0200
commit6cd461633d0da9003e03a0e198f4055e37a137a9 (patch)
tree7e655f9185962f6dff7cc674f326b939fbecbeb6
parent16fd4abaf618fb37ade221cbc64399c519685854 (diff)
downloadlua-6cd461633d0da9003e03a0e198f4055e37a137a9.tar.gz
lua-6cd461633d0da9003e03a0e198f4055e37a137a9.tar.bz2
lua-6cd461633d0da9003e03a0e198f4055e37a137a9.zip
clearer error message for uninstalled loadlib
-rw-r--r--loadlib.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/loadlib.c b/loadlib.c
index 286c220c..2979a9da 100644
--- a/loadlib.c
+++ b/loadlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: loadlib.c,v 1.47 2005/10/06 20:46:10 roberto Exp roberto $ 2** $Id: loadlib.c,v 1.48 2005/10/17 18:01:51 roberto Exp roberto $
3** Dynamic library loader for Lua 3** Dynamic library loader for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5** 5**
@@ -236,11 +236,8 @@ static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) {
236#define LIB_FAIL "absent" 236#define LIB_FAIL "absent"
237 237
238 238
239#if defined(__ELF__) || defined(__sun) || defined(sgi) || defined(__hpux) 239#define DLMSG "dynamic libraries not enabled; check your Lua installation"
240#define DLMSG LUA_QL("loadlib") " not enabled; check your Lua installation" 240
241#else
242#define DLMSG LUA_QL("loadlib") " not supported"
243#endif
244 241
245static void ll_unloadlib (void *lib) { 242static void ll_unloadlib (void *lib) {
246 (void)lib; /* to avoid warnings */ 243 (void)lib; /* to avoid warnings */