external/lua: fix warning in os.hostname
This commit is contained in:
parent
c3a9b5d6d5
commit
a0607346e7
2 changed files with 5 additions and 1 deletions
2
external/lua/loslib.c
vendored
2
external/lua/loslib.c
vendored
|
@ -408,7 +408,9 @@ static int os_exit (lua_State *L) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifndef HOST_NAME_MAX
|
||||
#define HOST_NAME_MAX 256 /* according to POSIX */
|
||||
#endif
|
||||
|
||||
/***
|
||||
* Returns the system hostname.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue