Skip to content

include asm-generic/ioctls.h#1

Open
kraj wants to merge 1 commit into
linux4sam:masterfrom
kraj:master
Open

include asm-generic/ioctls.h#1
kraj wants to merge 1 commit into
linux4sam:masterfrom
kraj:master

Conversation

@kraj

@kraj kraj commented Dec 19, 2019

Copy link
Copy Markdown

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
Copy Markdown
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

kraj commented Jan 21, 2020

Copy link
Copy Markdown
Author

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