Skip to content

Commit

Permalink
Added support for lua 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sodomon2 committed Feb 17, 2021
1 parent 3c37a86 commit 2d42564
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/client_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@

#define MQTT_CLIENT_BASE_CLASS "mqtt.ClientBase"

#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM == 501
#define lua_rawlen(L, i) lua_objlen((L), (i))
#endif

/*
** Client class.
*/
Expand Down

0 comments on commit 2d42564

Please sign in to comment.