uClibc doesn't use __xstat. Check if it exists, otherwise don't export
the override function.
AC_PATH_PROG([XSLTPROC], [xsltproc])
PKG_PROG_PKG_CONFIG
+AC_CHECK_FUNCS_ONCE(__xstat)
+
AC_ARG_WITH([rootprefix],
AS_HELP_STRING([--with-rootprefix=DIR], [rootfs directory prefix for config files and kernel modules]),
[], [with_rootprefix=""])
return _stat(p, st);
}
+#ifdef HAVE___XSTAT
TS_EXPORT int __xstat(int ver, const char *path, struct stat *st)
{
const char *p;
return _xstat(ver, p, st);
}
+#endif
TS_EXPORT int access(const char *path, int mode)
{