Overview
| Artifact ID: | 03beba504f479fa1fa9de05370bde3e4945ba260 |
|---|---|
| Ticket: | 83a3d869722fab9caaae3b6728215fb2507a6f0d
tclEpollNotfy.c fails to compile on Linux 2.6.<22 due to unconditionally including <sys/eventfd.h> |
| User & Date: | anonymous on 2017-05-30 13:19:51 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
The new notifier implementation for Linux honours HAVE_EVENTFD in all places save for #include'ing <sys/eventfd.h>, which is unavailable on Linux 2.6.<22: tcl/build.log:329:/var/tmp/kitcreator-test-984582044117946/kitcreator-trunk-tip/tcl/build/tclfossil_trunk/unix/tclEpollNotfy.c:24:25: fatal error: sys/eventfd.h: No such file or directory Fortunately, this is easily fixed by the following diff: --- a/unix/tclEpollNotfy.c +++ b/unix/tclEpollNotfy.c @@ -21,7 +21,9 @@ #include <fcntl.h> #include <signal.h> #include <sys/epoll.h> +#ifdef HAVE_EVENTFD #include <sys/eventfd.h> +#endif /* HAVE_EVENTFD */ #include <sys/queue.h> #include <unistd.h>
- foundin changed to: "8.7a0"
- is_private changed to: "0"
- login: "anonymous"
- priority changed to: "5 Medium"
- private_contact changed to: "ce03f0ae6dea39dcfbaebb4bee93a03b5334195c"
- resolution changed to: "None"
- severity changed to: "Critical"
- status changed to: "Open"
- submitter changed to: "anonymous"
- subsystem changed to: "01. Notifier"
- title changed to:
tclEpollNotfy.c fails to compile on Linux 2.6.<22 due to unconditionally including <sys/eventfd.h>
- type changed to: "Bug"