[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#76706: [PATCH] build: fix compile errors on platforms without getopt
From: |
Jim Meyering |
Subject: |
bug#76706: [PATCH] build: fix compile errors on platforms without getopt.h |
Date: |
Mon, 3 Mar 2025 09:37:29 -0800 |
On Sun, Mar 2, 2025 at 10:34 PM Collin Funk <collin.funk1@gmail.com> wrote:
> I found that GNU sed does not compile on platforms with <getopt.h> or
> getopt_long. For example on AIX:
>
> make[2]: Entering directory '/home/collinfunk/sed-4.9.51-0f74-modified'
> CC sed/sed-sed.o
> sed/sed.c:20:10: fatal error: getopt.h: No such file or directory
> 20 | #include <getopt.h>
> | ^~~~~~~~~~
...
> I have attached a patch that fixes this. I added a note in NEWS since
> the 4.9 was released after that commit so the tarball won't build on
> platforms like AIX.
Hi Colin,
Thank you. Applied and pushed.