GNU nano - Bugs: bug #65684, conditionalize inclusion of...
You are not allowed to post comments on this tracker with your current authentication level.
bug #65684: conditionalize inclusion of 'sys/wait.h' on HAVE_SYS_WAIT_H
Submitter: | Fabio <oldfaber> | ||
Submitted: | Sat 04 May 2024 05:36:35 PM UTC | ||
Severity: | 3 - Normal | Status: | Need Info |
Assigned to: | None | Open/Closed: | Open |
Mon 06 May 2024 02:09:08 PM UTC, comment #4: |
Fabio <oldfaber> |
Sun 05 May 2024 02:47:20 PM UTC, comment #3: If sys/wait.h is not available on Mingw, then why is there no fatal error for src/files.c (which also includes sys/wait.h)?
|
Benno Schulenberg <bens> |
Sun 05 May 2024 02:21:41 PM UTC, comment #2: sys/wait.h is not evailable with mingw64 gcc on Windows, and the the error obviously is
|
Fabio <oldfaber> |
Sun 05 May 2024 08:22:11 AM UTC, comment #1: Ehm... What is the error message without this patch? And: why does the '#include <sys/wait.h>' in src/files.c not need to be conditionalized?
|
Benno Schulenberg <bens> |
Sat 04 May 2024 05:36:35 PM UTC, original submission:
Hi,
|
Fabio <oldfaber> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 4 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2024-05-05 | bens | Summary | conditionalize inlcusion of 'sys/wait.h' on HAVE_SYS_WAIT_H | conditionalize inclusion of 'sys/wait.h' on HAVE_SYS_WAIT_H | |
2024-05-05 | bens | Status | None | Need Info | |
Summary | Use HAVE_SYS_WAIT_H macro | conditionalize inlcusion of 'sys/wait.h' on HAVE_SYS_WAIT_H | |||
2024-05-04 | oldfaber | Attached File | - | Added patch-text, #56008 |
Powered by Savane 3.13-4b48.
Corresponding source code
There is the same fatal error in src/files.c, where "#include <pwd.h>" must also be conditioned by HAVE_PWD_H macro.
To be able to generate nano.exe with mingw gcc in windows and use it in a windows terminal needs many more
modifications: getline(), regex(), realpath(), wcwidth(), ...
#ifdefing out an #include tested by configure looked the easy first step to find if a trivial patch
could be accepted, looks like not.
Thank you for your efforts.
Signed-off-by: Fabio Fabbri oldfaber at gmail dot com
Fabio