1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-29 08:31:35 -08:00

Build fixes for kqueue support.

* src/kqueue.c (Fkqueue_add_watch): O_BINARY is not a POSIX open(3)
flag.

* configure.ac (HAVE_KQUEUE): There is no pkg-config module for native
kqueue on *BSD.
This commit is contained in:
Wolfgang Jenkner 2015-11-11 16:07:50 +01:00 committed by Michael Albinus
parent e0a68f2587
commit c571fc149a
2 changed files with 8 additions and 1 deletions

View file

@ -2732,6 +2732,13 @@ case $with_file_notification,$NOTIFY_OBJ in
NOTIFY_LIBS=$KQUEUE_LIBS
NOTIFY_OBJ=kqueue.o
NOTIFY_SUMMARY="yes -lkqueue"
else
AC_SEARCH_LIBS(kqueue, [])
if test "$ac_cv_search_kqueue" != no; then
AC_DEFINE(HAVE_KQUEUE, 1, [Define to 1 to use kqueue.])
NOTIFY_OBJ=kqueue.o
NOTIFY_SUMMARY="yes (kqueue)"
fi
fi ;;
esac

View file

@ -163,7 +163,7 @@ will be reported only in case of the `rename' event. */)
/* Open file. */
file = ENCODE_FILE (file);
fd = emacs_open (SSDATA (file), O_NONBLOCK | O_BINARY | O_RDONLY, 0);
fd = emacs_open (SSDATA (file), O_NONBLOCK | O_RDONLY, 0);
if (fd == -1)
report_file_error ("File cannot be opened", file);