aboutsummaryrefslogtreecommitdiffstats
path: root/main/libc0.9.32/0011-time-fix-parsing-of-tzdata-files-where-off_t-is-64-b.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-02-06 15:11:15 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-02-07 07:22:42 +0000
commitd5f82899c4fb6072f992db6b1b19d9b6e26aeb95 (patch)
tree503f6c69ec0dfe32db9dafef2f9200661af6e822 /main/libc0.9.32/0011-time-fix-parsing-of-tzdata-files-where-off_t-is-64-b.patch
parent754c0c888f81d4fab2e7cde320816ff901bd451e (diff)
downloadaports-d5f82899c4fb6072f992db6b1b19d9b6e26aeb95.tar.bz2
aports-d5f82899c4fb6072f992db6b1b19d9b6e26aeb95.tar.xz
main/libc0.9.32: upgrade to 0.9.33
Diffstat (limited to 'main/libc0.9.32/0011-time-fix-parsing-of-tzdata-files-where-off_t-is-64-b.patch')
-rw-r--r--main/libc0.9.32/0011-time-fix-parsing-of-tzdata-files-where-off_t-is-64-b.patch32
1 files changed, 0 insertions, 32 deletions
diff --git a/main/libc0.9.32/0011-time-fix-parsing-of-tzdata-files-where-off_t-is-64-b.patch b/main/libc0.9.32/0011-time-fix-parsing-of-tzdata-files-where-off_t-is-64-b.patch
deleted file mode 100644
index 63ee369af6..0000000000
--- a/main/libc0.9.32/0011-time-fix-parsing-of-tzdata-files-where-off_t-is-64-b.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-From 0be0174259a3a35313fe1a0413630b919f910f5b Mon Sep 17 00:00:00 2001
-From: William Pitcock <nenolod@dereferenced.org>
-Date: Thu, 28 Apr 2011 03:09:20 -0500
-Subject: [PATCH] time: fix parsing of tzdata files where off_t is 64-bit
-
-lseek takes off_t as the offset type, but gcc will normally pass a
-32-bit value unless the number is wider than 16 bits. so we force
-gcc to pass the constant as off_t type always by casting the constant
-to off_t.
-
-Signed-off-by: William Pitcock <nenolod@dereferenced.org>
-Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
----
- libc/misc/time/time.c | 2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
-
-diff --git a/libc/misc/time/time.c b/libc/misc/time/time.c
-index 19d68e1..1b21f9e 100644
---- a/libc/misc/time/time.c
-+++ b/libc/misc/time/time.c
-@@ -1856,7 +1856,7 @@ ERROR:
- if (r != TZ_BUFLEN
- || strncmp(buf, "TZif", 4) != 0
- || (unsigned char)buf[4] < 2
-- || lseek(fd, -TZ_BUFLEN, SEEK_END) < 0
-+ || lseek(fd, (off_t) -TZ_BUFLEN, SEEK_END) < 0
- ) {
- goto ERROR;
- }
---
-1.7.8
-