::readlink() needs unistd.h

this is included in some gcc headers, but not in c++11 mode, that is the
reason why we did not get a compile error so far.
This commit is contained in:
Georg Baum 2014-12-21 18:13:33 +01:00
parent 7796ad3a36
commit 158b9a0e55

View File

@ -46,6 +46,9 @@
#ifdef HAVE_MAGIC_H
#include <magic.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <cerrno>
#include <cstdlib>