Mercurial > gnulib
diff lib/fstatat.c @ 40199:dd30d6eb93bd
stat, lstat: Fix conflict with relocatable-prog-wrapper module.
* lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
"sys/stat.h".
* lib/lstat.c: Likewise.
* lib/fstat.c: Likewise.
* lib/fstatat.c: Likewise.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 24 Feb 2019 11:59:48 +0100 |
parents | b06060465f09 |
children |
line wrap: on
line diff
--- a/lib/fstatat.c Thu Nov 29 09:06:26 2018 +0100 +++ b/lib/fstatat.c Sun Feb 24 11:59:48 2019 +0100 @@ -36,10 +36,14 @@ } #endif +#ifdef __osf__ /* Write "sys/stat.h" here, not <sys/stat.h>, otherwise OSF/1 5.1 DTK cc eliminates this include because of the preliminary #include <sys/stat.h> above. */ -#include "sys/stat.h" +# include "sys/stat.h" +#else +# include <sys/stat.h> +#endif #include "stat-time.h"