mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-29 16:52:28 +00:00
Fix Clang support
The amalgamated release is now confirmed to be working with Clang, including its integrated assembler. Fixes #41
This commit is contained in:
parent
e06c90fafc
commit
d7733579d3
103 changed files with 384 additions and 359 deletions
|
@ -21,9 +21,9 @@
|
|||
#include "libc/calls/termios.internal.h"
|
||||
#include "libc/sysv/consts/termios.h"
|
||||
|
||||
int ioctl$sys_tcgets_nt(int, struct termios *);
|
||||
int ioctl_tcgets_nt(int, struct termios *) hidden;
|
||||
|
||||
static int ioctl$sys_tcgets(int fd, struct termios *tio) {
|
||||
static int ioctl_tcgets_sysv(int fd, struct termios *tio) {
|
||||
int rc;
|
||||
union metatermios t;
|
||||
if ((rc = sys_ioctl(fd, TCGETS, &t)) != -1) {
|
||||
|
@ -39,10 +39,10 @@ static int ioctl$sys_tcgets(int fd, struct termios *tio) {
|
|||
* @see ioctl(fd, TCGETS, tio) dispatches here
|
||||
* @see ioctl(fd, TIOCGETA, tio) dispatches here
|
||||
*/
|
||||
int ioctl$tcgets(int fd, struct termios *tio) {
|
||||
int ioctl_tcgets(int fd, struct termios *tio) {
|
||||
if (!IsWindows()) {
|
||||
return ioctl$sys_tcgets(fd, tio);
|
||||
return ioctl_tcgets_sysv(fd, tio);
|
||||
} else {
|
||||
return ioctl$sys_tcgets_nt(fd, tio);
|
||||
return ioctl_tcgets_nt(fd, tio);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue