Include <unistd.h> if available.
This commit is contained in:
parent
c03649190c
commit
9ee8cf9e1a
1 changed files with 4 additions and 1 deletions
|
@ -10,11 +10,14 @@
|
|||
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifndef O_RDONLY
|
||||
#define O_RDONLY 0
|
||||
#endif
|
||||
|
||||
|
||||
/* Break string in two parts to avoid buggy C compilers that ignore characters
|
||||
after nulls in strings. */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue