mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 09:14:36 +00:00
OSX doesn't define HOST_NAME_MAX and LOGIN_NAME_MAX.
Fix based on patch from Jack Skalski.
This commit is contained in:
parent
a7e615d42e
commit
083320820f
@ -289,6 +289,13 @@ static const char* GetHostInfo()
|
|||||||
|
|
||||||
ptr += sprintf( ptr, "User: %s@%s\n", user, hostname );
|
ptr += sprintf( ptr, "User: %s@%s\n", user, hostname );
|
||||||
#else
|
#else
|
||||||
|
# ifndef HOST_NAME_MAX
|
||||||
|
const size_t HOST_NAME_MAX = 1024u;
|
||||||
|
# endif
|
||||||
|
# ifndef LOGIN_NAME_MAX
|
||||||
|
const size_t LOGIN_NAME_MAX = 1024u;
|
||||||
|
# endif
|
||||||
|
|
||||||
char hostname[HOST_NAME_MAX];
|
char hostname[HOST_NAME_MAX];
|
||||||
char user[LOGIN_NAME_MAX];
|
char user[LOGIN_NAME_MAX];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user