Commit c3290dce authored by Alessandro Rubini's avatar Alessandro Rubini

wrpc: prevent redefinitions for host builds

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 908e88d6
......@@ -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__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment