--- gmrun-0.9.2/src/gtkcompletionline.cc.orig 2003-11-16 11:55:07.000000000 +0100 +++ gmrun-0.9.2/src/gtkcompletionline.cc 2008-05-08 08:51:22.000000000 +0200 @@ -29,6 +29,7 @@ #include #include #include +#include #include using namespace std; --- gmrun-0.9.2/src/ci_string.h.orig 2001-05-16 16:39:31.000000000 +0200 +++ gmrun-0.9.2/src/ci_string.h 2008-05-08 08:51:33.000000000 +0200 @@ -7,6 +7,7 @@ #define __CI_STRING_H__ #include +#include #include struct ci_char_traits : public std::char_traits --- gmrun-0.9.2/src/prefs.cc.orig 2002-08-16 12:48:22.000000000 +0200 +++ gmrun-0.9.2/src/prefs.cc 2008-05-08 08:51:54.000000000 +0200 @@ -13,6 +13,7 @@ #include #include #include +#include #include --- gmrun-0.9.2/src/main.cc.orig 2003-11-16 11:55:07.000000000 +0100 +++ gmrun-0.9.2/src/main.cc 2008-05-08 09:03:11.000000000 +0200 @@ -14,6 +14,7 @@ #include #include +#include #include #include #include --- gmrun-0.9.2/src/gtkcompletionline.cc.orig 2009-07-27 12:50:09.000000000 +0800 +++ gmrun-0.9.2/src/gtkcompletionline.cc 2009-07-27 12:52:01.000000000 +0800 @@ -377,9 +377,7 @@ return 0; } -int my_alphasort(const void* va, const void* vb) { - const struct dirent** a = (const struct dirent**)va; - const struct dirent** b = (const struct dirent**)vb; - +static int my_alphasort(const struct dirent** a, const struct dirent** b) +{ const char* s1 = (*a)->d_name; const char* s2 = (*b)->d_name; .