Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. 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>
    
  5. foundin changed to: "8.7a0"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "ce03f0ae6dea39dcfbaebb4bee93a03b5334195c"
  10. resolution changed to: "None"
  11. severity changed to: "Critical"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "01. Notifier"
  15. title changed to:
    tclEpollNotfy.c fails to compile on Linux 2.6.<22 due to unconditionally including <sys/eventfd.h>
    
  16. type changed to: "Bug"