Change preprocessor tests to match what we will be using.

This commit is contained in:
Jonathan Perkin 2008-08-04 12:05:21 +02:00 committed by mysqldev
parent 403c3e6f2e
commit 1bc20ebba9

View File

@ -109,7 +109,7 @@ int my_symlink(const char *content, const char *linkname, myf MyFlags)
int my_is_symlink(const char *filename __attribute__((unused)))
{
#if defined(HAVE_REALPATH) && !defined(HAVE_purify) && !defined(HAVE_BROKEN_REALPATH)
#if defined(HAVE_LSTAT) && defined(S_ISLNK)
struct stat stat_buff;
return !lstat(filename, &stat_buff) && S_ISLNK(stat_buff.st_mode);
#else