include <unistd.h> where necessary in files using API calls

When global <sys/mman.h> was removed from tile.h it also removed
<unistd.h> nearby.  This exposes the lack of <unistd.h> being
included where needed using APIs like close()/read()/unlink()/isatty()
the WASM build seems to show this as the header file set is structured
differently.
This commit is contained in:
Darryl L. Miles
2025-07-27 12:42:05 -04:00
committed by R. Timothy Edwards
parent 4023ed9da0
commit df0623a435
7 changed files with 7 additions and 0 deletions
+1
View File
@@ -24,6 +24,7 @@ static char rcsid[] __attribute__ ((unused)) = "$Header: /usr/cvsroot/magic-8.0/
#include <sys/types.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include "utils/magsgtty.h"
#include "utils/magic.h"