From 4af0c5e8f3ebc327f9fbb2302ba78097e08e47fe Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 27 Mar 2008 09:55:05 +0000 Subject: [PATCH] * libc/include/sys/unistd.h: Declare lockf(2) and define lockf constants when building for Cygwin. --- newlib/ChangeLog | 5 +++++ newlib/libc/include/sys/unistd.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index c5013d5fe..e0034a951 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2008-03-27 Corinna Vinschen + + * libc/include/sys/unistd.h: Declare lockf(2) and define lockf + constants when building for Cygwin. + 2008-03-11 Jeff Johnston * libc/stdio/rgetc.c (__srget_r): Invoke CHECK_INIT to ensure diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h index 072e6fe71..025951819 100644 --- a/newlib/libc/include/sys/unistd.h +++ b/newlib/libc/include/sys/unistd.h @@ -103,7 +103,7 @@ int _EXFUN(nice, (int __nice_value )); #if !defined(__INSIDE_CYGWIN__) off_t _EXFUN(lseek, (int __fildes, off_t __offset, int __whence )); #endif -#if defined(__SPU__) +#if defined(__SPU__) || defined(__CYGWIN__) #define F_ULOCK 0 #define F_LOCK 1 #define F_TLOCK 2