]> git.lyx.org Git - features.git/commitdiff
::readlink() needs unistd.h
authorGeorg Baum <baum@lyx.org>
Sun, 21 Dec 2014 17:13:33 +0000 (18:13 +0100)
committerGeorg Baum <baum@lyx.org>
Sun, 21 Dec 2014 17:13:33 +0000 (18:13 +0100)
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.

src/support/filetools.cpp

index f145122ee8b2fd1d0c3413ccf00fa05646a06a03..040272aade620e406bed47dcca8947126c0c763d 100644 (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>