Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jan 2003 18:24:36 +0100
From:      slavomir katuscak <katus0bm@artax.karlin.mff.cuni.cz>
To:        freebsd-questions@freebsd.org
Subject:   problem with sys/select.h and sys/types.h
Message-ID:  <200301241824.36843.katus0bm@artax.karlin.mff.cuni.cz>

next in thread | raw e-mail | index | archive | help
i found this problem (maybe bug) in freebsd 4.7 stable
i have two programs uses sys/select.h and sys/types.h:

example 1:
#include <sys/select.h>
#include <sys/types.h>

int main(void) {
}

example 2:
#include <sys/types.h>
#include <sys/select.h>

int main(void) {
}

first example returns this error messages:

In file included from /usr/include/sys/select.h:40,
                 from test.c:1:
/usr/include/sys/event.h:52: syntax error before `uintptr_t'
/usr/include/sys/event.h:54: syntax error before `u_short'
In file included from pokus.c:1:
/usr/include/sys/select.h:47: syntax error before `pid_t'

but second is ok.

i don't have tested this in 5.0 release yet.

--=20
-----------------------------------------
Darklord - DT Project Manager & Developer
E-mail: katus0bm@artax.karlin.mff.cuni.cz
-----------------------------------------



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301241824.36843.katus0bm>