[chrony-dev] [Git][chrony/chrony][master] sys_linux: fix building with older compilers and some archs

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


Title: GitLab

Miroslav Lichvar pushed to branch master at chrony / chrony

Commits:

  • 3c39afa1
    by Miroslav Lichvar at 2025-10-22T14:03:44+02:00
    sys_linux: fix building with older compilers and some archs
    
    The recent replacement of <termios.h> with <linux/termios.h> to get
    TCGETS2 seems to work only with compilers (or C standards) that allow
    the same structure to be defined multiple times. There is a conflict
    between <sys/ioctl.h> and <linux/termios.h>.
    
    Another problem is that TCGETS2 is not used on some archs like ppc64.
    
    Switch back to <termios.h> and move TCGETS2 to a list in a separate
    file where it can be compiled without <sys/ioctl.h>.
    
    Fixes: 03875f1ea5c4 ("sys_linux: allow ioctl(TCGETS2) in seccomp filter")
    

4 changed files:



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/