Mercurial > gnulib
comparison 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 |
comparison
equal
deleted
inserted
replaced
40198:5a34193cbc07 | 40199:dd30d6eb93bd |
---|---|
34 { | 34 { |
35 return fstatat (fd, filename, buf, flags); | 35 return fstatat (fd, filename, buf, flags); |
36 } | 36 } |
37 #endif | 37 #endif |
38 | 38 |
39 #ifdef __osf__ | |
39 /* Write "sys/stat.h" here, not <sys/stat.h>, otherwise OSF/1 5.1 DTK cc | 40 /* Write "sys/stat.h" here, not <sys/stat.h>, otherwise OSF/1 5.1 DTK cc |
40 eliminates this include because of the preliminary #include <sys/stat.h> | 41 eliminates this include because of the preliminary #include <sys/stat.h> |
41 above. */ | 42 above. */ |
42 #include "sys/stat.h" | 43 # include "sys/stat.h" |
44 #else | |
45 # include <sys/stat.h> | |
46 #endif | |
43 | 47 |
44 #include "stat-time.h" | 48 #include "stat-time.h" |
45 | 49 |
46 #include <errno.h> | 50 #include <errno.h> |
47 #include <fcntl.h> | 51 #include <fcntl.h> |