Merge "POSIX says flock is in <sys/file.h>, not <unistd.h>."
This commit is contained in:
commit
40d06b25ac
@ -25,14 +25,19 @@
|
||||
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef _SYS_FILE_H_
|
||||
#define _SYS_FILE_H_
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
/* ANDROID: needed for flock() */
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
int flock(int, int);
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif /* _SYS_FILE_H_ */
|
||||
|
@ -168,7 +168,6 @@ extern int dup2(int, int);
|
||||
extern int dup3(int, int, int);
|
||||
extern int fcntl(int, int, ...);
|
||||
extern int ioctl(int, int, ...);
|
||||
extern int flock(int, int);
|
||||
extern int fsync(int);
|
||||
extern int fdatasync(int);
|
||||
extern int ftruncate(int, off_t);
|
||||
|
Loading…
Reference in New Issue
Block a user