Fix broken patch
This commit is contained in:
parent
3efb6ef479
commit
2600cf370b
@ -1,10 +1,18 @@
|
||||
Emergency patch for broken utimes/utime functions.
|
||||
|
||||
diff --git a/sysdeps/unix/sysv/linux/utime.c b/sysdeps/unix/sysv/linux/utime.c
|
||||
index 2cd9334a6f1efc36..6516344adcc16389 100644
|
||||
index 2cd9334a6f1efc36..8665ef26362b9563 100644
|
||||
--- a/sysdeps/unix/sysv/linux/utime.c
|
||||
+++ b/sysdeps/unix/sysv/linux/utime.c
|
||||
@@ -32,7 +32,7 @@ __utime64 (const char *file, const struct __utimbuf64 *times)
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
#include <utime.h>
|
||||
#include <time.h>
|
||||
+#include <fcntl.h>
|
||||
|
||||
int
|
||||
__utime64 (const char *file, const struct __utimbuf64 *times)
|
||||
@@ -32,7 +33,7 @@ __utime64 (const char *file, const struct __utimbuf64 *times)
|
||||
ts64[1].tv_nsec = 0LL;
|
||||
}
|
||||
|
||||
@ -14,10 +22,18 @@ index 2cd9334a6f1efc36..6516344adcc16389 100644
|
||||
|
||||
#if __TIMESIZE != 64
|
||||
diff --git a/sysdeps/unix/sysv/linux/utimes.c b/sysdeps/unix/sysv/linux/utimes.c
|
||||
index 75927b6ec6695c96..02a5e91415f52f2e 100644
|
||||
index 75927b6ec6695c96..a6809876fdd0df51 100644
|
||||
--- a/sysdeps/unix/sysv/linux/utimes.c
|
||||
+++ b/sysdeps/unix/sysv/linux/utimes.c
|
||||
@@ -29,7 +29,7 @@ __utimes64 (const char *file, const struct __timeval64 tvp[2])
|
||||
@@ -17,6 +17,7 @@
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <time.h>
|
||||
+#include <fcntl.h>
|
||||
|
||||
int
|
||||
__utimes64 (const char *file, const struct __timeval64 tvp[2])
|
||||
@@ -29,7 +30,7 @@ __utimes64 (const char *file, const struct __timeval64 tvp[2])
|
||||
ts64[1] = timeval64_to_timespec64 (tvp[1]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user