home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!news.sei.cmu.edu!drycas.club.cc.cmu.edu!ghod
- From: ghod@drycas.club.cc.cmu.edu
- Newsgroups: comp.os.coherent
- Subject: Re: Error: cannot open sys/fcntl.h ???
- Message-ID: <1992Sep5.224347.1985@drycas.club.cc.cmu.edu>
- Date: 5 Sep 92 22:43:46 -0500
- References: <1992Sep4.092402.3764@spcvxb.spc.edu>
- Organization: Carnegie Mellon Computer Club
- Lines: 37
-
- In article <1992Sep4.092402.3764@spcvxb.spc.edu>, mauritz_c@spcvxb.spc.edu writes:
- > Wnews is getting closer to working, however, I just started to
- > get this error:
- >
- > cannot open sys/fcntl.h
- >
- > This happens when inews.c is being compiled. Why does this happen?
- > I thought sys/fcntl.h is a standard header file?
- >
- > Cheers,
- >
- > Chris
- > "The accidental C programmer" :)
-
- The file fcntl.h was in the /usr/include/sys directory in Coherent 3.2 (and
- possibly older releases). MWC moved it to /usr/include for Coherent 4.0.1.
- There are three ways to fix this: 1) change the references in inews.c to
- <sys/fcntl.h> into <fcntl.h>; 2) copy fcntl.h from /usr/include/sys into
- /usr/include; or 3) (the best way, I think) use ln to make a hard link
- in the /usr/include directory to fcntl.h in /usr/include/sys.
-
- To create the link, use this command:
-
- # ln -f /usr/include/sys/fcntl.h /usr/include/fcntl.h
-
- Creating a link is preferable to copying the file since it doesn't require
- using up any added disk space.
-
- fcntl.h contains defenitions for the commands used with the open() system
- call (O_RDONLY, O_WRONLY, O_NDELAY, O_APPEND, etc). This file is supposed
- to be in /usr/include (I think) but MWC put it in /usr/include/sys in
- previous versions of Coherent for reasons unknown. They probably moved it
- back as a corrective measure.
-
- --Bill Paul
-
- (ghod@drycas.club.cc.cmu.edu or ghod@drycas.bitnet)
-