Skip to content

Commit a9f219d

Browse files
committed
Confirming non existence of sys/event.h for Linux (inotify) code
On BSD system with libinotify installed, code for Linux (inotify) is executed. This commit prevents it by confirming the non existence of sys/event.h for execution of code for Linux (inotify).
1 parent e93bac1 commit a9f219d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/file/event-core.scm

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
;;
3939
;; Linux (inotify)
4040
;;
41-
(.when (defined HAVE_SYS_INOTIFY_H)
41+
(.when (and (defined HAVE_SYS_INOTIFY_H) (not HAVE_SYS_EVENT_H))
4242
(.include <sys/inotify.h>)
4343

4444
(define-ctype ScmSysInotifyEvent::(.struct

0 commit comments

Comments
 (0)