| 1 | diff --git a/plugins/colorfilter/src/colorfilter.cpp b/plugins/colorfilter/src/colorfilter.cpp
|
| 2 | index ca7eb41..b7004b5 100644
|
| 3 | |
| 4 | |
| 5 | @@ -262,7 +262,7 @@ ColorfilterScreen::loadFilters ()
|
| 6 | loaded = 0;
|
| 7 | for (int i = 0; i < count; i++)
|
| 8 | {
|
| 9 | - name = CompString (basename (filters.at (i).s ().c_str ()));
|
| 10 | + name = CompString (basename ((char*)filters.at (i).s ().c_str ()));
|
| 11 | if (boost::algorithm::ends_with (name, ".frag"))
|
| 12 | name.erase (name.end () - 5, name.end ());
|
| 13 | file = filters.at (i).s ();
|
| 14 | diff --git a/compizconfig/libcompizconfig/src/main.c b/compizconfig/libcompizconfig/src/main.c
|
| 15 | index 1664d40..0029739 100644
|
| 16 | |
| 17 | |
| 18 | @@ -34,6 +34,7 @@
|
| 19 | #include <math.h>
|
| 20 | #include <errno.h>
|
| 21 | #include <assert.h>
|
| 22 | +#include <libgen.h>
|
| 23 |
|
| 24 | #include <ccs.h>
|
| 25 |
|