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
4e960fdd
Commit
4e960fdd
authored
Oct 02, 2014
by
vysheng
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #266 from gahr/freebsd-fixes
FreeBSD-specific fixes
parents
641f9a8e
61c1ac9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
mtproto-client.c
mtproto-client.c
+1
-1
net.c
net.c
+1
-1
No files found.
mtproto-client.c
View file @
4e960fdd
...
...
@@ -80,7 +80,7 @@
#define MAX_NET_RES (1L << 16)
//extern int log_level;
#if
ndef HAVE___BUILTIN_BSWAP32
#if
!defined(HAVE___BUILTIN_BSWAP32) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
static
inline
unsigned
__builtin_bswap32
(
unsigned
x
)
{
return
((
x
<<
24
)
&
0xff000000
)
|
((
x
<<
8
)
&
0x00ff0000
)
|
...
...
net.c
View file @
4e960fdd
...
...
@@ -26,11 +26,11 @@
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <sys/types.h>
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <sys/fcntl.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <errno.h>
#include <stdio.h>
...
...
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