repo.or.cz
/
cslatevm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog
|
commit
| commitdiff |
tree
|
edit
|
fork
raw
|
patch
(parent:
ddabd3b
)
bsd dlerror fix
author
timmy
<timmy@timmy-desktop.(none)>
Mon, 24 May 2010 03:46:03 +0000 (23:46 -0400)
committer
timmy
<timmy@timmy-desktop.(none)>
Mon, 24 May 2010 03:46:03 +0000 (23:46 -0400)
src/vm/external-library.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/vm/external-library.cpp
b/src/vm/external-library.cpp
index
de3a270
..
40bafb2
100644
(file)
--- a/
src/vm/external-library.cpp
+++ b/
src/vm/external-library.cpp
@@
-38,7
+38,7
@@
bool_t openExternalLibrary(struct object_heap* oh, struct ByteArray *libname, st
#else
h = dlopen(fullname, RTLD_NOW);
- char *message = dlerror();
+ const char *message = dlerror();
if (message != NULL) {
fprintf (stderr, "openExternalLibrary '%s' error: %s\n", fullname, message);
}
@@
-95,7
+95,7
@@
bool_t lookupExternalLibraryPrimitive(struct object_heap* oh, struct ByteArray *
}
int readExternalLibraryError(struct ByteArray *messageBuffer) {
- char *message;
+ const char *message;
int len;
#ifdef WIN32
//TODO: do the equivalent of dlerror() on unix and write the string into