fd_set is not ANSI C, AFAIK, maybe TCP/IP? I guess, you have to specify either a special compiler option, which tells the compiler to include all POSIX things, or so.
I'm almost sure that the fd_set definition in sys/types is included in some #ifdef preprocessor statement, which excludes it from your compile due to wrong compiler options or missing #defines in front of the #include. A closer look into the sys/types file should help. Kind regards Bernd Am Mittwoch, 29. November 2006 11:57 schrieben Sie: > All, > > I need the datatype fd_set and the select() function on z/OS but it > seems I'm loosing the fight with the compiler :-( > > my source looks quite simple: > > #include <sys/types.h> > #include <sys/time.h> > #include <sys/msg.h> > > int main(int argc, char *argv[]) > { > fd_set bla; > > printf("HEEEEEELP!\n"); > return(0); > } > > And the compiler tells me: > > CCN3275 Unexpected text bla encountered. > CCN3045 Undeclared identifier fd_set. > > > But why?!?!?! What's missing? "fd_set" is defined in sys/time.h > (SYS1.CEE.SCEEH.SYS.H) and I can't see what I'm missing. > > Just for the completeness, here are my compiler-options: > > DLL > RENT > STRICT > CHARS(UNSIGNED) > LANGLVL(EXTENDED) > ARCH(0) > TUNE(0) > SSCOMM > TARGET(LE) > LSEARCH(DD:USERLIB) > NOOPT > LONGNAME > SOURCE > ROSTRING > OBJECT > PLIST(HOST) > LOCALE(DE_DE.IBM-273) > EXECOPS > NOSTRICT_INDUC > NOWSIZEOF > NOSEQUENCE > NOMARGINS > NOINLINE > NOLIST > NOOFFSET > NOCOMPACT > NOCOMPRESS > NOIGNERRNO > NOINITAUTO > DEFINE(_OS390) > DEFINE(_OE_SOCKETS) > DEFINE(_OPEN_MSGQ_EXT) > DEFINE(_ALL_SOURCE) > > > Can someone bring me in the right direction?!?! > > Thank you very much, > Michael > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html