omcproxy: fix compilation on little-endian CPUs
authorEneas U de Queiroz <cote2004-github@yahoo.com>
Fri, 14 Dec 2018 18:25:27 +0000 (16:25 -0200)
committerPetr Štetiar <ynezz@true.cz>
Tue, 23 Jul 2019 17:29:54 +0000 (19:29 +0200)
commit65a405382bc7457c9425ac88e4e10890eb1284bf
treec291e18d31d7d2c31f57a4adad5e66159590131d
parenta68be42f9975d6e1b3f61bee214ab50ceebe1a87
omcproxy: fix compilation on little-endian CPUs

Don't use cpu_to_be32 outside of a function.

In file included from /omcproxy-2017-02-14-1fe6f48f/src/omcproxy.h:51:0,
                 from omcproxy-2017-02-14-1fe6f48f/src/mrib.c:39:
omcproxy-2017-02-14-1fe6f48f/src/mrib.c:57:34: error: braced-group within expression allowed only inside a function
 static uint32_t ipv4_rtr_alert = cpu_to_be32(0x94040000);
                                  ^
cc1: warning: unrecognized command line option '-Wno-gnu'

Ref: https://downloads.openwrt.org/releases/faillogs-18.06/arm_cortex-a9_vfpv3/base/omcproxy/compile.txt
Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
[more verbose commit message]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit cb4d00d1841ef6269114f2bd3880800dbdfba3b1)
package/network/services/omcproxy/Makefile
package/network/services/omcproxy/patches/100-mrib.c-don-t-use-cpu_to_be32-outside-of-function.patch [new file with mode: 0644]