jehanne: add fcntl
This commit is contained in:
@ -603,6 +603,7 @@ case "${host}" in
|
||||
CC="${CC} -I${jehanne_srcdir}/include"
|
||||
newlib_cflags="${newlib_cflags} -DREENTRANT_SYSCALLS_PROVIDED -DMALLOC_PROVIDED -DSIGNAL_PROVIDED"
|
||||
newlib_cflags="${newlib_cflags} -D_NO_GETLOGIN -D_NO_GETCWD -D_NO_GETPASS -D_NO_GETUT -D_NO_PWRITE -D_NO_PREAD"
|
||||
newlib_cflags="${newlib_cflags} -DHAVE_FCNTL"
|
||||
newlib_cflags="${newlib_cflags} -fno-omit-frame-pointer"
|
||||
;;
|
||||
*-*-phoenix*)
|
||||
|
@ -213,6 +213,13 @@ _gettimeofday_r(struct _reent *r, struct timeval *p, void *z)
|
||||
return POSIX_gettimeofday(errnop, p, z);
|
||||
}
|
||||
|
||||
int
|
||||
_fcntl_r(struct _reent *r, int fd, int cmd, int arg)
|
||||
{
|
||||
int *errnop = &r->_errno;
|
||||
return POSIX_fcntl(errnop, fd, cmd, arg);
|
||||
}
|
||||
|
||||
unsigned int
|
||||
sleep(unsigned int seconds)
|
||||
{
|
||||
|
Reference in New Issue
Block a user