]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: fix missing inclusion of poll.h on macOS
authorDennis Williamson <dennis@netstrata.com>
Mon, 5 Dec 2022 14:30:35 +0000 (14:30 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 5 Dec 2022 14:32:36 +0000 (14:32 +0000)
* src/tail.c: Following on from commit v9.1-55-g324c188cf
also include poll.h for __APPLE__, which was seen to be required
on macOS 11.6

src/tail.c

index 6c7d59faf9060416c7e095db206325ffb650997a..14abf0871a781334de83b3d86dcbde9e5a637d6a 100644 (file)
@@ -55,7 +55,7 @@
 # include <sys/inotify.h>
 #endif
 
-#if defined _AIX || defined __sun || HAVE_INOTIFY
+#if defined _AIX || defined __sun || defined __APPLE__ || HAVE_INOTIFY
 # include <poll.h>
 #endif