nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit f516cddce749c3bf938271ef3182b9169ac8cbcc
parent 60b826e5ee062daba599c5a81eec4ae0bffd73aa
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri,  6 Dec 2019 12:19:32 +0100

build: fix compilation on macOS, where 'st_mtim' is unknown

This fixes https://savannah.gnu.org/bugs/?57367.
Reported-by: Bo Anderson <bo@toxicflames.co.uk>
Tested-by: Bo Anderson <bo@toxicflames.co.uk>

Diffstat:
Msrc/text.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/text.c b/src/text.c @@ -31,6 +31,10 @@ #include <unistd.h> #include <sys/wait.h> +#if defined(__APPLE__) && !defined(st_mtim) +#define st_mtim st_mtimespec +#endif + #ifndef NANO_TINY static pid_t pid_of_command = -1; /* The PID of the forked process -- needed when wanting to abort it. */