diff --git a/newlib/ChangeLog b/newlib/ChangeLog index b6f822383..205eb292f 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2002-07-04 Jeff Johnston + + * libc/sys/linux/inode.c: Fix utime prototype and add _LIBC + define before including . + 2002-07-04 Jeff Johnston * libc/include/utime.h: Add include of <_ansi.h>. diff --git a/newlib/libc/sys/linux/inode.c b/newlib/libc/sys/linux/inode.c index e2f4ab16e..6f07f8e7a 100644 --- a/newlib/libc/sys/linux/inode.c +++ b/newlib/libc/sys/linux/inode.c @@ -9,9 +9,11 @@ #include #include #include -#include #include +#define _LIBC +#include + __LOCK_INIT(static, umask_lock); #define __NR___umask __NR_umask @@ -21,7 +23,7 @@ _syscall1(int,unlink,const char *,pathname) _syscall1(int,chdir,const char *,path) _syscall3(int,mknod,const char *,pathname,mode_t,mode,dev_t,dev) _syscall2(int,chmod,const char *,path,mode_t,mode) -_syscall2(int,utime,const char *,filename,struct utimbuf *,buf) +_syscall2(int,utime,const char *,filename,const struct utimbuf *,buf) _syscall2(int,access,const char *,filename,int,mode) _syscall2(int,mkdir,const char *,pathname,mode_t,mode) _syscall1(int,rmdir,const char *,pathname)