From: Georg Baum Date: Sun, 21 Dec 2014 17:13:33 +0000 (+0100) Subject: ::readlink() needs unistd.h X-Git-Tag: 2.2.0alpha1~1447 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=158b9a0e551144ca357d6635af9cddcc446bb91f;p=features.git ::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. --- diff --git a/src/support/filetools.cpp b/src/support/filetools.cpp index f145122ee8..040272aade 100644 --- a/src/support/filetools.cpp +++ b/src/support/filetools.cpp @@ -46,6 +46,9 @@ #ifdef HAVE_MAGIC_H #include #endif +#ifdef HAVE_UNISTD_H +#include +#endif #include #include