You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2013/03/09 01:48:37 UTC

[19/50] git commit: TS-1731 fix Lua plugin compile on Ubuntu 12.10

TS-1731 fix Lua plugin compile on Ubuntu 12.10

...among other platforms.


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/52af852d
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/52af852d
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/52af852d

Branch: refs/heads/3.3.x
Commit: 52af852d4540d0fe4c27e2fdc3c0119aa748138c
Parents: 9af6d5c
Author: Igor Galić <i....@brainsware.org>
Authored: Wed Feb 27 16:16:52 2013 -0800
Committer: Igor Galić <i....@brainsware.org>
Committed: Wed Feb 27 16:16:52 2013 -0800

----------------------------------------------------------------------
 plugins/experimental/lua/state.cc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/52af852d/plugins/experimental/lua/state.cc
----------------------------------------------------------------------
diff --git a/plugins/experimental/lua/state.cc b/plugins/experimental/lua/state.cc
index 37b5f28..856497a 100644
--- a/plugins/experimental/lua/state.cc
+++ b/plugins/experimental/lua/state.cc
@@ -22,9 +22,10 @@
 #include "hook.h"
 #include "lutil.h"
 #include <unistd.h>
+#include <string.h>
 #include <errno.h>
 
-#define INVALID_INSTANCE_ID (-1)
+#define INVALID_INSTANCE_ID (unsigned int)(-1)
 
 typedef int (*LuaHookDemuxer)(TSHttpHookID, TSCont, TSEvent, void *);