mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-08 14:41:55 +00:00
solaris fix
This commit is contained in:
@@ -2582,12 +2582,17 @@ char *uwsgi_get_binary_path(char *argvzero) {
|
||||
}
|
||||
free(buf);
|
||||
#elif defined(__sun__)
|
||||
char *buf = getexecname();
|
||||
char *buf = (char *)getexecname();
|
||||
if (buf) {
|
||||
uwsgi_log("HELLO: %s\n", buf);
|
||||
// return only absolute path
|
||||
if (buf[0] == '/') {
|
||||
return buf;
|
||||
}
|
||||
char *newbuf = realpath(buf, NULL);
|
||||
if (newbuf) {
|
||||
return newbuf;
|
||||
}
|
||||
}
|
||||
#elif defined(__FreeBSD__)
|
||||
char *buf = uwsgi_malloc(uwsgi.page_size);
|
||||
|
||||
Reference in New Issue
Block a user