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

stropts.h: No such file or directory #3

Open
jgedarovich opened this issue Jan 26, 2017 · 2 comments
Open

stropts.h: No such file or directory #3

jgedarovich opened this issue Jan 26, 2017 · 2 comments

Comments

@jgedarovich
Copy link

jgedarovich commented Jan 26, 2017

on fedora24

❯ gcc -o hidclient -O2 -lbluetooth -Wall hidclient.c

hidclient.c:105:21: fatal error: stropts.h: No such file or directory
 #include <stropts.h>
                     ^
compilation terminated.

I found some discussion around a similar error for an entirely different program here that also did the trick for me. after making the following change it compiled without issue.

diff --git a/hidclient.c b/hidclient.c
index 4050a8d..daf0df9 100644
--- a/hidclient.c
+++ b/hidclient.c
@@ -102,7 +102,8 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include <stropts.h>
+//#include <stropts.h>
+#include <sys/ioctl.h>
 #include <sys/stat.h>
 #include <sys/time.h>
 #include <sys/types.h>
@coder580
Copy link

i dont understand?

@hallyn
Copy link

hallyn commented May 31, 2022

i dont understand?

If you apply that diff, it allows hidclient to build on "recent" Ubuntus. (recent at this point might mean any supported Ubuntu) Thanks @jgedarovich

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

No branches or pull requests

3 participants