Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Issue in include/minix/const.h

30 views
Skip to first unread message

Ravi Bangoria

unread,
Sep 13, 2012, 10:35:28 AM9/13/12
to
I am reading MINIX source. I face one problem in include/minix/const.h

At line 19 of minix/const.h (line 02618 of appendix-B Operating System Design and Implementation), it use uid_t which is defined as macro in <sys/types.h>. But const.h doesn't include #include<sys/types.h>
Can we do such thing.

const.h also use many macros from line 117 to 125 which are defined in <sys/types.h>

Giovanni

unread,
Sep 13, 2012, 11:34:02 AM9/13/12
to
const.h is not a compilation unit but an header file. Any source file
that includes minix/const.h should include also sys/types.h in order
to compile correctly.

Ciao
Giovanni
--
A computer is like an air conditioner,
it stops working when you open Windows.
< http://giovanni.homelinux.net/ >
Message has been deleted

Ravi Bangoria

unread,
Sep 14, 2012, 3:24:15 AM9/14/12
to Giovanni
I got the point. So programmer have to be careful while including such files.
0 new messages