I am including here a patch to fix the issue.
diff -Nabur papaya-0.97.20031122/src/papaya/EntityGroup.cpp papaya-0.97.20031122.new/src/papaya/EntityGroup.cpp
--- papaya-0.97.20031122/src/papaya/EntityGroup.cpp 2009-07-12 12:08:33.000000000 +0900
+++ papaya-0.97.20031122.new/src/papaya/EntityGroup.cpp 2009-06-05 22:23:18.000000000 +0900
@@ -1,12 +1,11 @@
#include <algorithm>
+#include <cstring>
#include "mudclient.h"
#include "AliasEntity.h"
#include "TriggerEntity.h"
#include "EntityGroup.h"
-#include <cstring>
-
static int EntityCmp(Entity * e1, Entity * e2) {
return (e1 < e2);
}
diff -Nabur papaya-0.97.20031122/src/papaya/EntityHandler.cpp papaya-0.97.20031122.new/src/papaya/EntityHandler.cpp
--- papaya-0.97.20031122/src/papaya/EntityHandler.cpp 2009-07-12 12:08:33.000000000 +0900
+++ papaya-0.97.20031122.new/src/papaya/EntityHandler.cpp 2009-06-05 22:24:49.000000000 +0900
@@ -1,4 +1,5 @@
#include <algorithm>
+#include <cstring>
#include "mudclient.h"
@@ -12,8 +13,6 @@
#include "AliasEntity.h"
#include "TriggerEntity.h"
-#include <cstring>
-
extern EntityHandler * entities;
EntityHandler::EntityHandler() {
diff -Nabur papaya-0.97.20031122/src/papaya/Fade.cpp papaya-0.97.20031122.new/src/papaya/Fade.cpp
--- papaya-0.97.20031122/src/papaya/Fade.cpp 2009-07-12 12:08:34.000000000 +0900
+++ papaya-0.97.20031122.new/src/papaya/Fade.cpp 2009-06-05 22:26:24.000000000 +0900
@@ -1,11 +1,11 @@
+#include <cstring>
+
#include "papaya/system.h"
#include "mudclient.h"
#include "PapayaList.h"
#include "Fade.h"
-#include <cstring>
-
Fade::Fade(gboolean three, char * min, char * mid, char * max) {
min_edit = NULL;
mid_edit = NULL;
diff -Nabur papaya-0.97.20031122/src/papaya/GTKTwoVT.cpp papaya-0.97.20031122.new/src/papaya/GTKTwoVT.cpp
--- papaya-0.97.20031122/src/papaya/GTKTwoVT.cpp 2003-11-10 19:32:33.000000000 +0900
+++ papaya-0.97.20031122.new/src/papaya/GTKTwoVT.cpp 2009-07-12 11:46:42.000000000 +0900
@@ -1455,9 +1455,8 @@
lang = pango_context_get_language(pc);
metrics = pango_context_get_metrics(pc, font, lang);
w = pango_font_metrics_get_approximate_char_width(metrics);
- pango_font_metrics_unref(metrics);
-
h = pango_font_metrics_get_ascent(metrics) + pango_font_metrics_get_descent(metrics);
+ pango_font_metrics_unref(metrics);
// @@ Rewrite this to use Pango
diff -Nabur papaya-0.97.20031122/src/papaya/PreferenceHandler.cpp papaya-0.97.20031122.new/src/papaya/PreferenceHandler.cpp
--- papaya-0.97.20031122/src/papaya/PreferenceHandler.cpp 2009-07-12 12:08:33.000000000 +0900
+++ papaya-0.97.20031122.new/src/papaya/PreferenceHandler.cpp 2009-06-05 22:28:07.000000000 +0900
@@ -1,11 +1,11 @@
+#include <cstring>
+
#include "PreferenceHandler.h"
#include "mudclient.h"
#include "Connection.h"
#include <gmodule.h>
-#include <cstring>
-
extern Connection * first_connection;
extern Prefs * globalPreferences;
diff -Nabur papaya-0.97.20031122/src/papaya/Prefs.cpp papaya-0.97.20031122.new/src/papaya/Prefs.cpp
--- papaya-0.97.20031122/src/papaya/Prefs.cpp 2009-07-12 12:08:34.000000000 +0900
+++ papaya-0.97.20031122.new/src/papaya/Prefs.cpp 2009-06-05 22:27:36.000000000 +0900
@@ -1,12 +1,11 @@
#include <stdlib.h>
+#include <cstring>
#include "Prefs.h"
#include "SystemColour.h"
#include "mudclient.h"
-#include <cstring>
-
Prefs::Prefs(MUD * mud) {
pref_list = NULL;
initialiseDefaults();
diff -Nabur papaya-0.97.20031122/src/papaya/PromptFilter.cpp papaya-0.97.20031122.new/src/papaya/PromptFilter.cpp
--- papaya-0.97.20031122/src/papaya/PromptFilter.cpp 2009-07-12 12:08:33.000000000 +0900
+++ papaya-0.97.20031122.new/src/papaya/PromptFilter.cpp 2009-06-05 22:27:06.000000000 +0900
@@ -1,3 +1,5 @@
+#include <cstring>
+
#include "mudclient.h"
#include "TeloptFilter.h"
@@ -5,8 +7,6 @@
#include "Prefs.h"
#include "Connection.h"
-#include <cstring>
-
PromptFilter::PromptFilter(Connection * s)
: Filter(s, "Non-Standard-Prompt")
{
diff -Nabur papaya-0.97.20031122/src/papaya/Splash.cpp papaya-0.97.20031122.new/src/papaya/Splash.cpp
--- papaya-0.97.20031122/src/papaya/Splash.cpp 2009-07-12 12:08:33.000000000 +0900
+++ papaya-0.97.20031122.new/src/papaya/Splash.cpp 2009-06-05 22:29:01.000000000 +0900
@@ -1,3 +1,5 @@
+#include <cstring>
+
#ifdef WIN32
#include <windows.h>
#include <io.h>
@@ -43,8 +45,6 @@
#include "libusers.h"
-#include <cstring>
-
#define PACKAGE "papaya"
MUDSelector * mud_selector;
diff -Nabur papaya-0.97.20031122/src/papaya/SystemTriggerEntity.cpp papaya-0.97.20031122.new/src/papaya/SystemTriggerEntity.cpp
--- papaya-0.97.20031122/src/papaya/SystemTriggerEntity.cpp 2009-07-12 12:08:34.000000000 +0900
+++ papaya-0.97.20031122.new/src/papaya/SystemTriggerEntity.cpp 2009-06-05 22:29:26.000000000 +0900
@@ -1,9 +1,8 @@
+#include <cstring>
#include <ctype.h>
#include "SystemTriggerEntity.h"
-#include <cstring>
-
SystemTriggerEntity::SystemTriggerEntity() : Entity() {
callback = NULL;