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:
Benno Schulenberg 2019-12-06 12:19:32 +01:00
parent 60b826e5ee
commit f516cddce7

View File

@ -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. */