[llvm] [LLVM] [Support] Query the terminal width using the termios API (PR #143514)
    Fangrui Song via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Jun 12 20:07:08 PDT 2025
    
    
  
================
@@ -34,6 +34,12 @@
 #ifdef HAVE_GETAUXVAL
 #include <sys/auxv.h>
 #endif
+#ifdef HAVE_SYS_IOCTL_H
+#include <sys/ioctl.h>
+#endif
+#ifdef HAVE_TERMIOS_H
+#include <termios.h>
----------------
MaskRay wrote:
termios.h is for `tc*` functions. We use ioctl, which doesn't need the header.
https://github.com/llvm/llvm-project/pull/143514
    
    
More information about the llvm-commits
mailing list