Mercurial > hg > octave-kai > gnulib-hg
diff lib/open.c @ 15583:716e67b8d5a9
openat: Work around compilation error with OSF/1 5.1 DTK cc.
* lib/fopen.c: Use different syntax for include of <stdio.h>.
* lib/freopen.c: Likewise.
* lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
* lib/lstat.c: Likewise.
* lib/stat.c: Likewise.
* lib/open.c: Use different syntax for include of <fcntl.h>.
* lib/openat.c: Include fcntl.h again, explicitly.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Thu, 08 Sep 2011 00:03:50 +0200 |
parents | 9fd857e43955 |
children | 8250f2777afc |
line wrap: on
line diff
--- a/lib/open.c +++ b/lib/open.c @@ -34,7 +34,9 @@ } /* Specification. */ -#include <fcntl.h> +/* Write "fcntl.h" here, not <fcntl.h>, otherwise OSF/1 5.1 DTK cc eliminates + this include because of the preliminary #include <fcntl.h> above. */ +#include "fcntl.h" #include <errno.h> #include <stdarg.h>