[patch] to gdb: portability fix: <sys/file.h>
Eli Zaretskii
eliz@is.elta.co.il
Thu Feb 8 00:32:00 GMT 2001
On Wed, 7 Feb 2001, Michael Sokolov wrote:
> > In other words, Posix platforms should not be forced in yet another
> > Autoconf test if we can avoid that. IMHO, of course.
>
> I don't see how you are avoiding yet another Autoconf test. My patch adds the
> test for <sys/file.h> to configure.in so that I can check HAVE_SYS_FILE_H.
> However, what you are proposing in another message:
>
> > #if HAVE_UNISTD_H
> > #include <unistd.h>
> > #endif
> >
> > #ifndef F_OK
> > # if HAVE_SYS_FILE_H
> > /* 4.3BSD has F_OK in sys/file.h. */
> > # include <sys/file.h>
> > # endif
> > # ifndef F_OK
> > # define F_OK 0
> > # endif
> > #endif
>
> has to check HAVE_SYS_FILE_H too, so I don't see how it is different or how are
> you avoiding "forcing in yet another Autoconf test".
You could replace HAVE_SYS_FILE_H with something 4.3BSD defines, for
example.
Anyway, it was just a suggestion.
More information about the Gdb-patches
mailing list