Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
tg
Commits
824804be
Commit
824804be
authored
Nov 09, 2014
by
vvaltman
Browse files
Options
Browse Files
Download
Plain Diff
Merge github.com:vysheng/tg
parents
807da5b3
f25aa360
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
README.md
README.md
+5
-4
loop.c
loop.c
+1
-1
tgl.h
tgl.h
+1
-0
No files found.
README.md
View file @
824804be
...
...
@@ -74,8 +74,8 @@ If using [Homebrew](http://brew.sh/):
brew install libconfig
brew install readline
brew install lua
export CFLAGS="-I/usr/local/include -I/usr/local/Cellar/readline/6.
2.4
/include"
export LDFLAGS="-L/usr/local/lib -L/usr/local/Cellar/readline/6.
2.4
/lib"
export CFLAGS="-I/usr/local/include -I/usr/local/Cellar/readline/6.
3.8
/include"
export LDFLAGS="-L/usr/local/lib -L/usr/local/Cellar/readline/6.
3.8
/lib"
./configure && make
Thanks to
[
@jfontan
](
https://github.com/vysheng/tg/issues/3#issuecomment-28293731
)
for this solution.
...
...
@@ -85,8 +85,9 @@ If using [MacPorts](https://www.macports.org):
sudo port install libconfig-hr
sudo port install readline
sudo port install lua51
export CFLAGS="-I/usr/local/include -I/opt/local/include"
export LDFLAGS="-L/usr/local/lib -L/opt/local/lib/"
sudo port install libevent
export CFLAGS="-I/usr/local/include -I/opt/local/include -I/opt/local/include/lua-5.1"
export LDFLAGS="-L/usr/local/lib -L/opt/local/lib -L/opt/local/lib/lua-5.1"
./configure && make
Install these ports:
...
...
loop.c
View file @
824804be
...
...
@@ -683,7 +683,7 @@ static void event_incoming (struct bufferevent *bev, short what, void *_arg) {
static
void
accept_incoming
(
evutil_socket_t
efd
,
short
what
,
void
*
arg
)
{
vlogprintf
(
E_WARNING
,
"Accepting incoming connection
\n
"
);
unsigned
clilen
;
unsigned
clilen
=
0
;
struct
sockaddr_in
cli_addr
;
int
fd
=
accept
(
efd
,
(
struct
sockaddr
*
)
&
cli_addr
,
&
clilen
);
...
...
tgl.h
View file @
824804be
...
...
@@ -22,6 +22,7 @@
#include <tgl-layout.h>
#include <string.h>
#include <stdlib.h>
#define TGL_MAX_DC_NUM 100
#define TG_SERVER_1 "173.240.5.1"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment