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
|
@ -21,11 +21,13 @@
|
|||
#include <time.h>
|
||||
|
||||
#include "lua.h"
|
||||
@@ -401,7 +408,26 @@
|
||||
@@ -401,7 +408,28 @@
|
||||
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