summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdk-stage1/NEWS2
-rw-r--r--mdk-stage1/zlibsupport.c14
2 files changed, 2 insertions, 14 deletions
diff --git a/mdk-stage1/NEWS b/mdk-stage1/NEWS
index ab4568944..23f31d19f 100644
--- a/mdk-stage1/NEWS
+++ b/mdk-stage1/NEWS
@@ -1,3 +1,5 @@
+- fix building with newer dietlibc/zlib
+
1.60
- add support for virtio discs
diff --git a/mdk-stage1/zlibsupport.c b/mdk-stage1/zlibsupport.c
index 750241b0f..2b171e72d 100644
--- a/mdk-stage1/zlibsupport.c
+++ b/mdk-stage1/zlibsupport.c
@@ -236,20 +236,6 @@ out_err:
return NULL;
}
-void *grab_fd(int fd, unsigned long *size)
-{
- gzFile gzfd;
-
- gzfd = gzdopen(fd, "rb");
- if (!gzfd)
- return NULL;
-
- /* gzclose(gzfd) would close fd, which would drop locks.
- Don't blame zlib: POSIX locking semantics are so horribly
- broken that they should be ripped out. */
- return grab_contents(gzfd, size);
-}
-
/* gzopen handles uncompressed files transparently. */
void *grab_file(const char *filename, unsigned long *size)
{