[TD-13761]<fix>: redefine dir api.
This commit is contained in:
parent
5afb3e2c00
commit
031b50ff76
|
@ -809,7 +809,7 @@ int32_t taosGetFqdn(char *fqdn) {
|
|||
char hostname[1024];
|
||||
hostname[1023] = '\0';
|
||||
if (gethostname(hostname, 1023) == -1) {
|
||||
// printf("failed to get hostname, reason:%s", strerror(errno));
|
||||
printf("failed to get hostname, reason:%s", strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -826,7 +826,7 @@ int32_t taosGetFqdn(char *fqdn) {
|
|||
#endif // __APPLE__
|
||||
int32_t ret = getaddrinfo(hostname, NULL, &hints, &result);
|
||||
if (!result) {
|
||||
// printf("failed to get fqdn, code:%d, reason:%s", ret, gai_strerror(ret));
|
||||
printf("failed to get fqdn, code:%d, reason:%s", ret, gai_strerror(ret));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue