summaryrefslogtreecommitdiff
path: root/editors/emacs25/patches/patch-src_inotify.c
diff options
context:
space:
mode:
Diffstat (limited to 'editors/emacs25/patches/patch-src_inotify.c')
-rw-r--r--editors/emacs25/patches/patch-src_inotify.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/editors/emacs25/patches/patch-src_inotify.c b/editors/emacs25/patches/patch-src_inotify.c
new file mode 100644
index 00000000000..a914443097d
--- /dev/null
+++ b/editors/emacs25/patches/patch-src_inotify.c
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_inotify.c,v 1.1 2016/12/13 13:40:05 wiedi Exp $
+
+need sys/filio.h for FIONREAD on SunOS
+
+--- src/inotify.c.orig 2016-06-29 09:49:22.000000000 +0000
++++ src/inotify.c
+@@ -27,6 +27,10 @@ along with GNU Emacs. If not, see <http
+ #include "keyboard.h"
+ #include "termhooks.h"
+
++#if defined(__sun)
++#include <sys/filio.h>
++#endif
++
+ #include <errno.h>
+ #include <sys/inotify.h>
+ #include <sys/ioctl.h>