Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
c3290dce
Commit
c3290dce
authored
Jan 14, 2016
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrpc: prevent redefinitions for host builds
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
908e88d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
arch.h
arch-wrpc/include/arch/arch.h
+6
-4
No files found.
arch-wrpc/include/arch/arch.h
View file @
c3290dce
...
...
@@ -6,11 +6,13 @@
/* Architecture-specific defines, included by top-level stuff */
#define htons(x) (x)
#define htonl(x) (x)
#ifndef htons
/* If we build as host process, we have them LE already */
# define htons(x) (x)
# define htonl(x) (x)
#define ntohs htons
#define ntohl htonl
# define ntohs htons
# define ntohl htonl
#endif
#define abs(x) ((x >= 0) ? x : -x)
#endif
/* __ARCH_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