Compile error in QNX crocess compiler #158

Closed
spider391Tang opened this Issue Nov 11, 2013 · 3 comments

Comments

Projects
None yet
2 participants
@spider391Tang

I clone the project and build the master.

./configure --host=arm-unknown-nto-qnx6.5.0
make

Here is the error
bandwidth-server-many-up.c:57: error: 'fd_set' undeclared (first use in this function)

I add #include<sys/select.h> in bandwidth-server-many-up.c
and compile success !!!

@stephane

This comment has been minimized.

Show comment
Hide comment
@stephane

stephane Nov 12, 2013

Owner

Which include is missing? #include <sys/select.h> ?

Owner

stephane commented Nov 12, 2013

Which include is missing? #include <sys/select.h> ?

@stephane

This comment has been minimized.

Show comment
Hide comment
@stephane

stephane Nov 12, 2013

Owner

Arf, github censured me!
Is it?

#include <sys/select.h>
Owner

stephane commented Nov 12, 2013

Arf, github censured me!
Is it?

#include <sys/select.h>
@spider391Tang

This comment has been minimized.

Show comment
Hide comment
@spider391Tang

spider391Tang Nov 12, 2013

yes
missing "sys/select.h"
in QNX650 it should be include
Thanks

yes
missing "sys/select.h"
in QNX650 it should be include
Thanks

@stephane stephane closed this in 13e1e8e Nov 12, 2013

mk8 added a commit to mk8/libmodbus that referenced this issue Jan 29, 2014

Add missing sys/select.h for QNX (closes #158)
POSIX-1.2001 for fd_set. Thanks to spider391Tang.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment