• Bas Westerbaan's avatar
    tgl.h: add stdlib.h include · 318f8d58
    Bas Westerbaan authored
    This fixes the error
    
    ```
    gcc -I. -I. -I/usr/local/include -I/opt/local/include -I/opt/local/include/lua-5.1  -I/usr/local/include -I/usr/include -I/usr/include  -I/opt/local/include  -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -c -MP -MD -MF ./dep/lua-tg.d -MQ ./objs/lua-tg.o -o objs/lua-tg.o lua-tg.c
    In file included from lua-tg.c:25:
    In file included from ./lua-tg.h:24:
    ./tgl.h:380:27: error: implicitly declaring library function 'malloc' with type
          'void *(unsigned long)' [-Werror]
      struct tgl_state *TLS = malloc (sizeof (*TLS));
                              ^
    ./tgl.h:380:27: note: please include the header <stdlib.h> or explicitly provide
          a declaration for 'malloc'
    1 error generated.
    make: *** [objs/lua-tg.o] Error 1
    ```
    318f8d58
Name
Last commit
Last update
debian Loading commit data...
gentoo/net-im/telegram-cli Loading commit data...
rpm Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CHANGELOG Loading commit data...
LICENSE Loading commit data...
LICENSE.h Loading commit data...
Makefile.in Loading commit data...
README-LUA Loading commit data...
README.es Loading commit data...
README.md Loading commit data...
append.tl Loading commit data...
auto-static-print.c Loading commit data...
auto-static.c Loading commit data...
auto.h Loading commit data...
ax_lua.m4 Loading commit data...
binlog.c Loading commit data...
binlog.h Loading commit data...
binlog.tl Loading commit data...
config.h.in Loading commit data...
config.sample Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...
crc32.c Loading commit data...
crc32.h Loading commit data...
dump-tl-file.c Loading commit data...
encrypted_scheme.tl Loading commit data...
encrypted_scheme16.tl Loading commit data...
encrypted_scheme17.tl Loading commit data...
event-old.h Loading commit data...
gen_constants_h.awk Loading commit data...
generate.c Loading commit data...
generate.h Loading commit data...
include.h Loading commit data...
interface.c Loading commit data...
interface.h Loading commit data...
loop.c Loading commit data...
loop.h Loading commit data...
lua-tg.c Loading commit data...
lua-tg.h Loading commit data...
m4-ax_gcc_builtin.m4 Loading commit data...
m4_ax_check_openssl.m4 Loading commit data...
m4_ax_check_zlib.m4 Loading commit data...
main.c Loading commit data...
mtproto-client.c Loading commit data...
mtproto-client.h Loading commit data...
mtproto-common.c Loading commit data...
mtproto-common.h Loading commit data...
net.c Loading commit data...
net.h Loading commit data...
no-preview.h Loading commit data...
queries.c Loading commit data...
queries.h Loading commit data...
scheme.tl Loading commit data...
scheme12.tl Loading commit data...
scheme15.tl Loading commit data...
scheme16.tl Loading commit data...
scheme17.tl Loading commit data...
scheme18.tl Loading commit data...
server.pub Loading commit data...
start-telegram-daemon Loading commit data...
structures.c Loading commit data...
structures.h Loading commit data...
telegram-cli.spec Loading commit data...
telegram-daemon Loading commit data...
telegram.h Loading commit data...
test.lua Loading commit data...
tg-server.pub Loading commit data...
tgl-fetch.h Loading commit data...
tgl-inner.h Loading commit data...
tgl-layout.h Loading commit data...
tgl-timers.c Loading commit data...
tgl-timers.h Loading commit data...
tgl.c Loading commit data...
tgl.h Loading commit data...
tl-parser.c Loading commit data...
tl-parser.h Loading commit data...
tl-tl.h Loading commit data...
tlc.c Loading commit data...
tools.c Loading commit data...
tools.h Loading commit data...
tree.h Loading commit data...
updates.c Loading commit data...
updates.h Loading commit data...