Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include asm-generic/ioctls.h #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

kraj
Copy link

@kraj kraj commented Dec 19, 2019

This helps in including definitions for TCGETS2 TCSETSW2 and TCSETSF2

Fixes

custom_termios2.c:14:19: error: use of undeclared identifier 'TCGETS2' return ioctl(fd, TCGETS2, termios); ^ custom_termios2.c:24:9: error: use of undeclared identifier 'TCSETS2' cmd = TCSETS2; ^ custom_termios2.c:27:9: error: use of undeclared identifier 'TCSETSW2' cmd = TCSETSW2; ^ custom_termios2.c:30:9: error: use of undeclared identifier 'TCSETSF2' cmd = TCSETSF2;
^

Signed-off-by: Khem Raj raj.khem@gmail.com

This helps in including definitions for TCGETS2 TCSETSW2 and TCSETSF2

Fixes

custom_termios2.c:14:19: error: use of undeclared identifier 'TCGETS2'                                                  return ioctl(fd, TCGETS2, termios);                                                                                              ^                                                                                      custom_termios2.c:24:9: error: use of undeclared identifier 'TCSETS2'                                                           cmd = TCSETS2;                                                                                                        ^                                                                                         custom_termios2.c:27:9: error: use of undeclared identifier 'TCSETSW2'                                                          cmd = TCSETSW2;                                                                                                       ^                                                                                         custom_termios2.c:30:9: error: use of undeclared identifier 'TCSETSF2'                                                          cmd = TCSETSF2;
                      ^

Signed-off-by: Khem Raj <raj.khem@gmail.com>
@joshua-henderson
Copy link
Contributor

In every instance I can find <asm/ioctls.h> directly includes <asm-generic/ioctls.h>. Are you compiling for an ARM target? What version of the kernel are you getting headers from?

@kraj
Copy link
Author

kraj commented Jan 21, 2020

I use musl for C library not glibc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants