1 From 1252d056feaf71e7488cbaa5a78b3d45cd77f877 Mon Sep 17 00:00:00 2001
2 From: Paul Eggert <eggert@cs.ucla.edu>
3 Date: Sat, 4 Aug 2018 00:37:43 -0700
4 Subject: [PATCH] gzip: port better to mingw again
6 Problem reported by Bdale Garbee (Bug#32305#8).
7 * gzip.c (do_chown): Use HAVE_FCHOWN || HAVE_CHOWN,
8 which is configured, instead of DO_CHOWN, which is not.
11 1 file changed, 1 insertion(+), 1 deletion(-)
13 diff --git a/gzip.c b/gzip.c
14 index 02d5364..b26dd14 100644
17 @@ -1923,7 +1923,7 @@ local int check_ofname()
18 the file and NAME its name. Change it to user UID and to group GID.
19 If UID or GID is -1, though, do not change the corresponding user
22 +#if ! (HAVE_FCHOWN || HAVE_CHOWN)
23 /* The types uid_t and gid_t do not exist on mingw, so don't assume them. */
24 # define do_chown(fd, name, uid, gid) ((void) 0)