Merge "POSIX says flock is in <sys/file.h>, not <unistd.h>."

This commit is contained in:
Elliott Hughes 2015-02-17 17:09:34 +00:00 committed by Gerrit Code Review
commit 40d06b25ac
2 changed files with 7 additions and 3 deletions

View File

@ -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_ */

View File

@ -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);