mirror of
https://github.com/lunarmodules/luasocket.git
synced 2025-04-09 02:06:46 +02:00
add gethostname function for PSP
This commit is contained in:
parent
fe6d7ee9c6
commit
adc12c9101
@ -9,6 +9,13 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef PSP
|
||||
int gethostname (char *__name, size_t __len) {
|
||||
snprintf(__name, __len, "psp");
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*=========================================================================*\
|
||||
* Internal function prototypes.
|
||||
\*=========================================================================*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user