Skip to content
  • Roberto Oliveira's avatar
    main/mosh: fix build with musl on ppc64le · 17ee07c9
    Roberto Oliveira authored and Jakub Jirutka's avatar Jakub Jirutka committed
    mosh was breaking when building in ppc64le using musl, because ioctl() is defined
    as ioctl(int, int) in musl and mosh is using TIOCSWINSZ macro as parameter. This was
    triggering a gcc warning and make the build fail.
    
    This patch does an explicit integer conversion in TIOCSWINSZ, as no bits get
    lost.
    17ee07c9