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