comparison 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
comparison
equal deleted inserted replaced
15582:c5fde8111cd7 15583:716e67b8d5a9
32 { 32 {
33 return open (filename, flags, mode); 33 return open (filename, flags, mode);
34 } 34 }
35 35
36 /* Specification. */ 36 /* Specification. */
37 #include <fcntl.h> 37 /* Write "fcntl.h" here, not <fcntl.h>, otherwise OSF/1 5.1 DTK cc eliminates
38 this include because of the preliminary #include <fcntl.h> above. */
39 #include "fcntl.h"
38 40
39 #include <errno.h> 41 #include <errno.h>
40 #include <stdarg.h> 42 #include <stdarg.h>
41 #include <string.h> 43 #include <string.h>
42 #include <sys/types.h> 44 #include <sys/types.h>