projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0217a2
)
fix misleading use of _POSIX_VDISABLE in sys/ttydefaults.h
author
Rich Felker
<dalias@aerifal.cx>
Wed, 29 Jan 2020 15:47:48 +0000
(10:47 -0500)
committer
Rich Felker
<dalias@aerifal.cx>
Wed, 29 Jan 2020 15:47:48 +0000
(10:47 -0500)
_POSIX_VDISABLE is only visible if unistd.h has already been included,
so conditional use of it here makes no sense. the value is always 0
anyway; it does not vary.
include/sys/ttydefaults.h
patch
|
blob
|
history
diff --git
a/include/sys/ttydefaults.h
b/include/sys/ttydefaults.h
index e5d4da2ba159f0b81fa5023a5e176ea28cd9dee8..edb55bc4d68a5229bb23996c30a10878d0d430fd 100644
(file)
--- a/
include/sys/ttydefaults.h
+++ b/
include/sys/ttydefaults.h
@@
-9,13
+9,8
@@
#define CTRL(x) ((x)&037)
#define CEOF CTRL('d')
-#ifdef _POSIX_VDISABLE
-#define CEOL _POSIX_VDISABLE
-#define CSTATUS _POSIX_VDISABLE
-#else
#define CEOL '\0'
#define CSTATUS '\0'
-#endif
#define CERASE 0177
#define CINTR CTRL('c')