home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / sgi / 12479 < prev    next >
Encoding:
Text File  |  1992-08-16  |  1.8 KB  |  41 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!usc!sdd.hp.com!mips!darwin.sura.net!jhunix.hcf.jhu.edu!andy
  3. From: andy@jhunix.hcf.jhu.edu (Andy Poling)
  4. Subject: Re: Problem with C compiler/pre-compiler in ANSI mode
  5. Message-ID: <1992Aug17.004331.100@jhunix.hcf.jhu.edu>
  6. Followup-To: poster
  7. Summary: was me...
  8. Keywords: cc, cpp, acpp
  9. Organization: HAC - Johns Hopkins University, Baltimore
  10. References: <1992Aug15.232605.23822@jhunix.hcf.jhu.edu>
  11. Date: Mon, 17 Aug 1992 00:43:31 GMT
  12. Lines: 27
  13.  
  14. In article <1992Aug15.232605.23822@jhunix.hcf.jhu.edu> andy@jhunix.hcf.jhu.edu (Andy Poling) writes:
  15. >
  16. >I'm encountering what seems to be a problem with the Development Option 4.0
  17. >C compiler and/or pre-compiler.
  18. >
  19. >When I invoke cc with the "-ansi" option (so that it won't shout at me about
  20. >void pointer usage in prototypes in the SGI-provided header files) it stops
  21. >processing some header files properly - e.g. /usr/include/sys/signal.h .  It
  22. >seems ignorant of the macro sigmask() which is defined in
  23. >/usr/include/sys/signal.h and it seems to have ignored the BSD prototypes in
  24. >/usr/include/sys/signal.h and seems to be using the SysV prototypes.
  25.  
  26. Several people were kind enough to point out to me that Posix and/or BSD
  27. signal functions are only prototyped if __EXTENSIONS__ or __POSIX_SOURCE are
  28. defined (and they are in "-xansi", or default, mode).
  29.  
  30. I can no longer reproduce the complaints about void pointers, so I am
  31. asuming that I was doing something something strange (and/or wrong).
  32.  
  33. Thanks to the people who responded.
  34.  
  35. -Andy
  36.  
  37. Andy Poling                              Internet: andy@jhunix.hcf.jhu.edu
  38. UNIX Systems Programmer                  Bitnet: ANDY@JHUNIX
  39. Homewood Academic Computing              Voice: (410)516-8096    
  40. Johns Hopkins University                 UUCP: uunet!mimsy!aplcen!jhunix!andy
  41.