Adjust the watchfd changes for Apple builds.

This commit is contained in:
Andrew Wood
2026-04-25 23:05:17 +01:00
parent a66a1cc10c
commit 57f0b91d16
9 changed files with 19 additions and 16 deletions
+3
View File
@@ -448,6 +448,8 @@ void pv_freecontents_watchfd(pvwatchfd_t info)
pv_freecontents_calc(&(info->calc));
pv_freecontents_transfer(&(info->transfer));
pv_freecontents_display(&(info->display));
#ifdef __APPLE__
#else
if (NULL != info->file_fdinfo) {
free(info->file_fdinfo);
info->file_fdinfo = NULL;
@@ -456,6 +458,7 @@ void pv_freecontents_watchfd(pvwatchfd_t info)
free(info->file_fdsymlink);
info->file_fdsymlink = NULL;
}
#endif
}