char *rpath, *dest, *extra_buf = NULL;
const char *start, *end, *rpath_limit;
long int path_max;
-#ifdef S_ISLNK
+#if HAVE_READLINK
int num_links = 0;
#endif
#endif
goto error;
-#ifdef S_ISLNK
+#if HAVE_READLINK
if (S_ISLNK (st.st_mode))
{
char *buf;