[HAVE_UNISTD_H]: Include unistd.h.
This commit is contained in:
parent
77a5664f19
commit
5fe16cc40f
1 changed files with 5 additions and 0 deletions
|
@ -77,6 +77,11 @@ extern int errno;
|
|||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
/* This is to declare getcwd. */
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#if !defined (S_ISREG) && defined (S_IFREG)
|
||||
# define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue