mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-29 06:46:35 -04:00
Fixed headers for FreeBSD
This commit is contained in:
parent
6bac1bd257
commit
6d17515646
7 changed files with 28 additions and 0 deletions
4
osc.c
4
osc.c
|
|
@ -327,7 +327,11 @@ osc_set_pwd(struct terminal *term, char *string)
|
|||
if (hostname_end == NULL)
|
||||
return;
|
||||
|
||||
#if __linux__
|
||||
char this_host[HOST_NAME_MAX];
|
||||
#elif __FreeBSD__
|
||||
char this_host[sysconf(_SC_HOST_NAME_MAX)];
|
||||
#endif
|
||||
if (gethostname(this_host, sizeof(this_host)) < 0)
|
||||
this_host[0] = '\0';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue