Subject: Re: Unable to C-compile simple program
To: Klaus Klein <kleink@ira.uka.de>
From: Patrick Welche <prlw1@cam.ac.uk>
List: current-users
Date: 08/03/1998 15:07:31
Klaus Klein wrote:
>
> prlw1@cam.ac.uk (Patrick Welche) writes:
>
> > > When I try to compile the following program:
> > >
> > > #include <stdio.h>
> > > #include <dirent.h>
> >
> > How about
> >
> > #include <stdio.h>
> > #include <sys/types.h>
> > #include <sys/dir.h>
>
> Keep in mind that <sys/dir.h> is an obsolete header - if you want your
> program to be portable (within POSIX), <dirent.h> is indeed the way to
> go.
Thanks for the info.
It looks like the dir(5) manpage might need updating...
Cheers,
Patrick