#include <cstdio>
#include <msp/core/systemerror.h>
-#ifndef WIN32
-#include <fnmatch.h>
-#else
-#include <msp/strings/glob.h>
-#endif
#include <msp/strings/utils.h>
#include "dir.h"
#include "path.h"
Path next = real/queue.front();
queue.pop_front();
- struct stat st = lstat(next);
- if(S_ISLNK(st.st_mode))
+ if(is_link(next))
{
if(++n_links>64)
throw runtime_error("too many symbolic links");