about summary refs log tree commit diff
path: root/io/sys/stat.h
diff options
context:
space:
mode:
Diffstat (limited to 'io/sys/stat.h')
-rw-r--r--io/sys/stat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/io/sys/stat.h b/io/sys/stat.h
index 5bc497c671..f51c56aabd 100644
--- a/io/sys/stat.h
+++ b/io/sys/stat.h
@@ -214,8 +214,10 @@ extern __inline__ int stat (__const char *__path, struct stat *__statbuf)
 
 extern __inline__ int __lstat(__const char *__path, struct stat *__statbuf)
 { return __lxstat (_STAT_VER, __path, __statbuf); }
+#if defined(__USE_BSD) || defined(__USE_XOPEN_EXTENDED)
 extern __inline__ int lstat(__const char *__path, struct stat *__statbuf)
 { return __lxstat (_STAT_VER, __path, __statbuf); }
+#endif
 
 extern __inline__ int __fstat (int __fd, struct stat *__statbuf)
 { return __fxstat (_STAT_VER, __fd, __statbuf); }