test: fix compiler warnings for test-fs.c
Include <unistd.h> on Unices, fixes warnings about unlink() not being declared.
This commit is contained in:
parent
4d7cfe4313
commit
5641503ae7
@ -31,7 +31,9 @@
|
||||
#include <sys/stat.h>
|
||||
|
||||
|
||||
#if !UNIX
|
||||
#if UNIX
|
||||
#include <unistd.h> /* unlink, rmdir, etc. */
|
||||
#else
|
||||
# include <direct.h>
|
||||
# include <io.h>
|
||||
# define unlink _unlink
|
||||
|
||||
Loading…
Reference in New Issue
Block a user