GNU bug report logs - #59818
incomplete type 'struct pollfd', etc., when compiling tail on MacOS (patch included)

Previous Next

Package: coreutils;

Reported by: Dennis Williamson <dennis <at> netstrata.com>

Date: Sun, 4 Dec 2022 16:54:01 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 59818-done <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Dennis Williamson <dennis <at> netstrata.com>, 59818-done <at> debbugs.gnu.org
Subject: Re: bug#59818: incomplete type 'struct pollfd', etc., when compiling
 tail on MacOS (patch included)
Date: Mon, 5 Dec 2022 14:40:41 +0000
On 04/12/2022 15:55, Dennis Williamson wrote:
> I received the errors for tail.c shown below when compiling coreutils on
> MacOS (11.6). Adding __APPLE__ to the #if defined for poll.h fixes the
> issue (see the diff at the bottom). Making this change matches that line
> to the one within check_output_alive().
> 
> commit 324c188cfd8a1628c260e5003d309613a0c66e57 (August 29, 2022) made
> the change to check_output_alive(), but missed the change reported here.
> 
> Dennis
> 
> (HEAD: aaa306ad76d48b27efd75101d57b6ec5bf90362c)
> 
> Error:
> 
>     CC       src/tail.o
> src/tail.c:367:17: error: variable has incomplete type 'struct pollfd'
>     struct pollfd pfd;

Pushed at https://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=02441761c

thank you,
Pádraig





This bug report was last modified 2 years and 191 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.