We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f3d584 commit 2b17192Copy full SHA for 2b17192
terminal.d
@@ -393,9 +393,11 @@ version(CRuntime_Musl) {
393
// We define our own bindings whenever the import fails.
394
// When druntime catches up, this block can slowly be removed,
395
// although for backward compatibility we might want to keep it.
396
- static if (!__traits(compiles, import core.sys.posix.termios : tcgetattr)) {
397
- int tcgetattr (int, struct termios *);
398
- int tcsetattr (int, int, const struct termios *);
+ static if (!__traits(compiles, { import core.sys.posix.termios : tcgetattr; })) {
+ extern (C) {
+ int tcgetattr (int, termios *);
399
+ int tcsetattr (int, int, const termios *);
400
+ }
401
}
402
403
0 commit comments