conflict between sys/siginfo.h and syssocket/var.h

siginfo.h:
#define si_pid __data.__proc.__pid

socketvar.h
struct selinfo {
pid_t si_pid;

Compiler doesn’t like the pid_t si_pid :wink:

  • Mario
    “People looking to serious, should be looking to Sirius”

Mario Charest <mcharest@void_zinformatic.com> wrote:

siginfo.h:
#define si_pid __data.__proc.__pid

socketvar.h
struct selinfo {
pid_t si_pid;

Compiler doesn’t like the pid_t si_pid > :wink:

Yuck! ;v)


cburgess@qnx.com

“Colin Burgess” <cburgess@qnx.com> wrote in message
news:96hhs5$quh$1@nntp.qnx.com

Mario Charest <mcharest@void_zinformatic.com> wrote:

siginfo.h:
#define si_pid __data.__proc.__pid

socketvar.h
struct selinfo {
pid_t si_pid;

Compiler doesn’t like the pid_t si_pid > :wink:

Yuck! ;v)

I also hit this:

If you have a program like:


cburgess@qnx.com

Sorry wrong key, I was saying if you have a program like:

#include <netinet/tcp.h>
#include <netinet/tcp_timer.h>
#include <netinet/in.h>
#include <netinet/tcp_var.h>

You get:

In file included from t.c:4:
/usr/include/netinet/tcp_var.h:69: field `segq’ has incomplete type
cc: error 33

Definition of segq is nowhere to be found ;-(.


“Mario Charest” <mcharest@void_zinformatic.com> wrote in message
news:96hih5$rjq$1@nntp.qnx.com

“Colin Burgess” <> cburgess@qnx.com> > wrote in message
news:96hhs5$quh$> 1@nntp.qnx.com> …
Mario Charest <mcharest@void_zinformatic.com> wrote:

siginfo.h:
#define si_pid __data.__proc.__pid

socketvar.h
struct selinfo {
pid_t si_pid;

Compiler doesn’t like the pid_t si_pid > :wink:

Yuck! ;v)

I also hit this:

If you have a program like:


cburgess@qnx.com

Forget that…

“Mario Charest” <mcharest@void_zinformatic.com> wrote in message
news:96hikm$rk0$1@nntp.qnx.com

Sorry wrong key, I was saying if you have a program like:

#include <netinet/tcp.h
#include <netinet/tcp_timer.h
#include <netinet/in.h
#include <netinet/tcp_var.h

You get:

In file included from t.c:4:
/usr/include/netinet/tcp_var.h:69: field `segq’ has incomplete type
cc: error 33

Definition of segq is nowhere to be found ;-(.


“Mario Charest” <mcharest@void_zinformatic.com> wrote in message
news:96hih5$rjq$> 1@nntp.qnx.com> …


“Colin Burgess” <> cburgess@qnx.com> > wrote in message
news:96hhs5$quh$> 1@nntp.qnx.com> …
Mario Charest <mcharest@void_zinformatic.com> wrote:

siginfo.h:
#define si_pid __data.__proc.__pid

socketvar.h
struct selinfo {
pid_t si_pid;

Compiler doesn’t like the pid_t si_pid > :wink:

Yuck! ;v)

I also hit this:

If you have a program like:


cburgess@qnx.com
\