Package: mudlet
Severity: normal
Tags: patch

Hi,

Yajl version 2.0.4 will soon be uploaded to unstable.  It will cause
mudlet to FTBFS because of API changes.

I've attached a patch based on the information in mudlet's COMPILE
documentation.  Unfortunately it doesn't make the package binNMUable, so
it will need to be applied after the transition.

Please let me know if you have concerns.

Regards,

John Stamp
Description: Compile using yajl >= 2.0
Author: John Stamp <[email protected]>
Last-Update: 2011-12-20

--- a/src/TLuaInterpreter.cpp
+++ b/src/TLuaInterpreter.cpp
@@ -41,7 +41,7 @@
 //#ifdef Q_OS_WIN32
 //    #include "lua_yajl.c"
 //#else
-    #include "lua_yajl1.c"
+    #include "lua_yajl.c"
 //#endif
 
 extern "C"
--- a/src/src.pro
+++ b/src/src.pro
@@ -110,7 +110,7 @@
     dlgMapper.cpp \
     TRoom.cpp \
     TMap.cpp \
-    lua_yajl1.c \
+    lua_yajl.c \
     TBuffer.cpp \
     irc/src/ircbuffer.cpp \
     irc/src/irc.cpp \
--- a/src/lua_yajl.c
+++ b/src/lua_yajl.c
@@ -590,7 +590,7 @@
     } else if ( num == -HUGE_VAL ) {
         str = "-1e+666";
         len = 7;
-    } else if ( _isnan(num) ) {
+    } else if ( isnan(num) ) {
         str = "-0"; 
         len = 2;
    } else {

Reply via email to