# HG changeset patch # User Bruno Haible # Date 1315433030 -7200 # Node ID 716e67b8d5a9cbc847824fdf28297a1e7d9eef3e # Parent c5fde8111cd73d24cff01a1265cb0278d5e3fad0 openat: Work around compilation error with OSF/1 5.1 DTK cc. * lib/fopen.c: Use different syntax for include of . * lib/freopen.c: Likewise. * lib/fstatat.c: Use different syntax for include of . * lib/lstat.c: Likewise. * lib/stat.c: Likewise. * lib/open.c: Use different syntax for include of . * lib/openat.c: Include fcntl.h again, explicitly. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2011-09-07 Bruno Haible + + openat: Work around compilation error with OSF/1 5.1 DTK cc. + * lib/fopen.c: Use different syntax for include of . + * lib/freopen.c: Likewise. + * lib/fstatat.c: Use different syntax for include of . + * lib/lstat.c: Likewise. + * lib/stat.c: Likewise. + * lib/open.c: Use different syntax for include of . + * lib/openat.c: Include fcntl.h again, explicitly. + 2011-09-04 J.T. Conklin parse-datetime: document the newly accepted format diff --git a/lib/fopen.c b/lib/fopen.c --- a/lib/fopen.c +++ b/lib/fopen.c @@ -33,7 +33,9 @@ } /* Specification. */ -#include +/* Write "stdio.h" here, not , otherwise OSF/1 5.1 DTK cc eliminates + this include because of the preliminary #include above. */ +#include "stdio.h" #include #include diff --git a/lib/freopen.c b/lib/freopen.c --- a/lib/freopen.c +++ b/lib/freopen.c @@ -33,7 +33,9 @@ } /* Specification. */ -#include +/* Write "stdio.h" here, not , otherwise OSF/1 5.1 DTK cc eliminates + this include because of the preliminary #include above. */ +#include "stdio.h" #include diff --git a/lib/fstatat.c b/lib/fstatat.c --- a/lib/fstatat.c +++ b/lib/fstatat.c @@ -36,7 +36,10 @@ } #endif -#include +/* Write "sys/stat.h" here, not , otherwise OSF/1 5.1 DTK cc + eliminates this include because of the preliminary #include + above. */ +#include "sys/stat.h" #include #include diff --git a/lib/lstat.c b/lib/lstat.c --- a/lib/lstat.c +++ b/lib/lstat.c @@ -42,7 +42,10 @@ } /* Specification. */ -# include +/* Write "sys/stat.h" here, not , otherwise OSF/1 5.1 DTK cc + eliminates this include because of the preliminary #include + above. */ +# include "sys/stat.h" # include # include diff --git a/lib/open.c b/lib/open.c --- a/lib/open.c +++ b/lib/open.c @@ -34,7 +34,9 @@ } /* Specification. */ -#include +/* Write "fcntl.h" here, not , otherwise OSF/1 5.1 DTK cc eliminates + this include because of the preliminary #include above. */ +#include "fcntl.h" #include #include diff --git a/lib/openat.c b/lib/openat.c --- a/lib/openat.c +++ b/lib/openat.c @@ -35,6 +35,10 @@ } #endif +/* Write "fcntl.h" here, not , otherwise OSF/1 5.1 DTK cc eliminates + this include because of the preliminary #include above. */ +#include "fcntl.h" + #include "openat.h" #include diff --git a/lib/stat.c b/lib/stat.c --- a/lib/stat.c +++ b/lib/stat.c @@ -34,7 +34,10 @@ } /* Specification. */ -#include +/* Write "sys/stat.h" here, not , otherwise OSF/1 5.1 DTK cc + eliminates this include because of the preliminary #include + above. */ +#include "sys/stat.h" #include #include