efreet: fix undeclared function
authorJean Guyomarc'h <jean.guyomarch@gmail.com>
Tue, 5 Jan 2016 22:19:18 +0000 (23:19 +0100)
committerStefan Schmidt <stefan@osg.samsung.com>
Thu, 7 Jan 2016 11:03:04 +0000 (12:03 +0100)
libgen is needed on OSX because it contains the prototype
of basename() which is required in the compiling unit.
The result of basename() was therefore implicitely converted into
an integer, which could leed to subtile issues.

@fix

src/bin/efreet/efreet_desktop_cache_create.c

index 849c491..9dd17d6 100644 (file)
 
 #ifdef _WIN32
 # include <winsock2.h>
-# include <libgen.h>
 #endif
 
+#include <libgen.h>
+
 #include <Eina.h>
 #include <Eet.h>
 #include <Ecore.h>