mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-23 21:29:39 +03:00
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>
This commit is contained in:
parent
60b826e5ee
commit
f516cddce7
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user