diff --git a/src/unix/dl_macosx.cpp b/src/unix/dl_macosx.cpp index 8e607cf912..60510e7344 100644 --- a/src/unix/dl_macosx.cpp +++ b/src/unix/dl_macosx.cpp @@ -68,7 +68,7 @@ void TranslateError(const char *path, enum dyldErrorSource type, int number) } } -void *dlopen(char *path, int mode /* mode is ignored */) +void *dlopen(const char *path, int mode /* mode is ignored */) { int dyld_result; NSObjectFileImage ofile; @@ -89,7 +89,7 @@ void *dlopen(char *path, int mode /* mode is ignored */) return handle; } -void *dlsym(void *handle, char *symbol) +void *dlsym(void *handle, const char *symbol) { void *addr;