HomeFreeBSD

diff3: Remove bespoke getopt.h

Description

diff3: Remove bespoke getopt.h

diff3's getopt.h included a function declaration without a prototype,
which produces a compiler warning. Just remove the bespoke getopt.h
and use the system header.

Reported by: Mark Millard
Reviewed by: fuz
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D53802

(cherry picked from commit 38829592dc77e9ead4259785e0bfb93bd4c2fe34)
(cherry picked from commit 437c77476e726e0414e460c973fd88fe812ce2b4)

Details

Provenance
emasteAuthored on Nov 18 2025, 1:16 PM
Reviewer
fuz
Differential Revision
D53802: diff3: Remove bespoke getopt.h
Parents
rG81b68da9d428: trim.8: minor update for manual page
Branches
Unknown
Tags
Unknown