mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-22 14:17:43 +02:00
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:
committed by
R. Timothy Edwards
parent
4023ed9da0
commit
df0623a435
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user