bogstad@HOPKINS-EECS-BRAVO.ARPA.UUCP (05/18/86)
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