Thread View: mod.computers.ridge
1 messages
1 total messages
Started by bogstad
Sun, 18 May 1986 06:38
Problem with <ndir.h> & <sys/types.h>
Author: bogstad
Date: Sun, 18 May 1986 06:38
Date: Sun, 18 May 1986 06:38
34 lines
1270 bytes
1270 bytes
PROBLEM: Including /usr/include/ndir.h and /usr/include/sys/types.h results in "Incompatible types" message. REPEAT-BY: Create foo.c: #include <ndir.h> #include <sys/types.h> cc -c foo.c REASON: ndir.h uses #define for u_short and u_long rather then including types.h. FIX: In ndir.h change #define lines for u_short and u_long too: #ifdef ridge #include <sys/types.h> #else #define u_short unsigned short #define u_long unsigned long #endif This is safe against multiple includes of types.h because types.h uses a #define and #ifdef to make sure its body is not included more than once. Bill Bogstad bogstad@hopkins-eecs-bravo.arpa
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads