comparison lib/stat.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 5a52ef2d4772
comparison
equal deleted inserted replaced
40198:5a34193cbc07 40199:dd30d6eb93bd
40 } 40 }
41 41
42 #endif 42 #endif
43 43
44 /* Specification. */ 44 /* Specification. */
45 #ifdef __osf__
45 /* Write "sys/stat.h" here, not <sys/stat.h>, otherwise OSF/1 5.1 DTK cc 46 /* Write "sys/stat.h" here, not <sys/stat.h>, otherwise OSF/1 5.1 DTK cc
46 eliminates this include because of the preliminary #include <sys/stat.h> 47 eliminates this include because of the preliminary #include <sys/stat.h>
47 above. */ 48 above. */
48 #include "sys/stat.h" 49 # include "sys/stat.h"
50 #else
51 # include <sys/stat.h>
52 #endif
49 53
50 #include "stat-time.h" 54 #include "stat-time.h"
51 55
52 #include <errno.h> 56 #include <errno.h>
53 #include <limits.h> 57 #include <limits.h>