You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I working from nsd master on OpenBSD 6.6. Bootstrap and configure go well, but compile has a hiccup:
$ make -k
...
gcc -I. -fasynchronous-unwind-tables -fexceptions -fstack-protector-strong -Wer
ror=implicit-function-declaration -fdata-sections -ffunction-sections -fPIC -Wa
,--noexecstack -g -O2 -c ./popen3.c
./popen3.c: In function 'popen3':
./popen3.c:106: error: 'fd_set' undeclared (first use in this function)
./popen3.c:106: error: (Each undeclared identifier is reported only once
./popen3.c:106: error: for each function it appears in.)
./popen3.c:106: error: expected ';' before 'rfds'
./popen3.c:111: warning: implicit declaration of function 'FD_ZERO'
./popen3.c:111: error: 'rfds' undeclared (first use in this function)
./popen3.c:112: warning: implicit declaration of function 'FD_SET'
./popen3.c:113: warning: implicit declaration of function 'select'
I believe this is the OpenBSD doc of interest: select(2) - OpenBSD manual pages. It looks like OpenBSD puts the declaration in <sys/select.h>.
Another man page of interest is the Linux man page. Linux and libc put the declarations in either <sys/types.h> or <sys/select.h>.
Related, the source file also uses ssize_t. I believe that is defined in <sys/types.h>.
The text was updated successfully, but these errors were encountered:
Looks like that file was missing a bunch of other system includes. Those are fixed in the commit. I think that may solve the problem, since other code also uses fd_set and compiles, with those includes. If not, let me know, and I'll start testing and including sys/select.h, also for the other cases. Also ssize_t and other declarations should be covered by these extra includes.
Hi Everyone,
I working from nsd master on OpenBSD 6.6. Bootstrap and configure go well, but compile has a hiccup:
I believe this is the OpenBSD doc of interest:
select(2)
- OpenBSD manual pages. It looks like OpenBSD puts the declaration in<sys/select.h>
.Another man page of interest is the Linux man page. Linux and libc put the declarations in either
<sys/types.h>
or<sys/select.h>
.Related, the source file also uses
ssize_t
. I believe that is defined in<sys/types.h>
.The text was updated successfully, but these errors were encountered: