Skip to content

Commit 73e61c2

Browse files
[sanitizer_common] Remove reference to obsolete termio ioctls
The termio ioctls are no longer used after commit 59978b2 ("[sanitizer_common] Remove interceptors for deprecated struct termio (llvm#137403)"), remove them. Fixes this build error: ../../../../libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp:765:27: error: invalid application of ‘sizeof’ to incomplete type ‘__sanitizer::termio’ 765 | unsigned IOCTL_TCGETA = TCGETA; | ^~~~~~ ../../../../libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp:769:27: error: invalid application of ‘sizeof’ to incomplete type ‘__sanitizer::termio’ 769 | unsigned IOCTL_TCSETA = TCSETA; | ^~~~~~ ../../../../libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp:770:28: error: invalid application of ‘sizeof’ to incomplete type ‘__sanitizer::termio’ 770 | unsigned IOCTL_TCSETAF = TCSETAF; | ^~~~~~~ ../../../../libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp:771:28: error: invalid application of ‘sizeof’ to incomplete type ‘__sanitizer::termio’ 771 | unsigned IOCTL_TCSETAW = TCSETAW; | ^~~~~~~
1 parent 69f3552 commit 73e61c2

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -779,13 +779,9 @@ unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr);
779779
unsigned IOCTL_SOUND_PCM_WRITE_FILTER = SOUND_PCM_WRITE_FILTER;
780780
#endif // SOUND_VERSION
781781
unsigned IOCTL_TCFLSH = TCFLSH;
782-
unsigned IOCTL_TCGETA = TCGETA;
783782
unsigned IOCTL_TCGETS = TCGETS;
784783
unsigned IOCTL_TCSBRK = TCSBRK;
785784
unsigned IOCTL_TCSBRKP = TCSBRKP;
786-
unsigned IOCTL_TCSETA = TCSETA;
787-
unsigned IOCTL_TCSETAF = TCSETAF;
788-
unsigned IOCTL_TCSETAW = TCSETAW;
789785
unsigned IOCTL_TCSETS = TCSETS;
790786
unsigned IOCTL_TCSETSF = TCSETSF;
791787
unsigned IOCTL_TCSETSW = TCSETSW;

compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,13 +1311,9 @@ extern unsigned IOCTL_SNDCTL_COPR_SENDMSG;
13111311
extern unsigned IOCTL_SNDCTL_COPR_WCODE;
13121312
extern unsigned IOCTL_SNDCTL_COPR_WDATA;
13131313
extern unsigned IOCTL_TCFLSH;
1314-
extern unsigned IOCTL_TCGETA;
13151314
extern unsigned IOCTL_TCGETS;
13161315
extern unsigned IOCTL_TCSBRK;
13171316
extern unsigned IOCTL_TCSBRKP;
1318-
extern unsigned IOCTL_TCSETA;
1319-
extern unsigned IOCTL_TCSETAF;
1320-
extern unsigned IOCTL_TCSETAW;
13211317
extern unsigned IOCTL_TCSETS;
13221318
extern unsigned IOCTL_TCSETSF;
13231319
extern unsigned IOCTL_TCSETSW;

0 commit comments

Comments
 (0)