OSDN Git Service

2002-07-04 Jeff Johnston <jjohnstn@redhat.com>
authorjjohnstn <jjohnstn>
Thu, 4 Jul 2002 23:25:05 +0000 (23:25 +0000)
committerjjohnstn <jjohnstn>
Thu, 4 Jul 2002 23:25:05 +0000 (23:25 +0000)
        * libc/sys/linux/inode.c: Fix utime prototype and add _LIBC
        define before including <sys/lock.h>.

newlib/ChangeLog
newlib/libc/sys/linux/inode.c

index b6f8223..205eb29 100644 (file)
@@ -1,5 +1,10 @@
 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
 
+       * libc/sys/linux/inode.c: Fix utime prototype and add _LIBC
+       define before including <sys/lock.h>.
+
+2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
+
        * libc/include/utime.h: Add include of <_ansi.h>.
        * libc/sys/linux/Makefile.am: Add utimes.c.
        * libc/sys/linux/Makefile.in: Regenerated.
index e2f4ab1..6f07f8e 100644 (file)
@@ -9,9 +9,11 @@
 #include <sys/stat.h>
 #include <sys/utime.h>
 #include <linux/dirent.h>
-#include <sys/lock.h>
 #include <machine/syscall.h>
 
+#define _LIBC
+#include <sys/lock.h>
+
 __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)