[From nobody Thu Jun 25 05:54:57 2020
Received: from sonic308-11.consmr.mail.ne1.yahoo.com ([66.163.187.34])
 by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux))
 id 1gXs9z-0004oQ-8e
 for openwrt-devel@lists.openwrt.org; Fri, 14 Dec 2018 18:26:04 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1544811950; bh=MNSDncIOI0V9VsUMBSrMIbFSHf/1Khkwf5HY0kaJhXI=;
 h=From:To:Cc:Subject:Date:In-Reply-To:References:From:Subject;
 b=cKNGAOPRm8hSjXZYX0izl2ROT6dB+H3ACD+LkV/mBFQVcM3CYs7e6qc46C+enPmJmhnBA89BW25Kz0AwQMViUyVwZum2ThIE+cw2AqlmawgMvAF2KSF2hSMipyTkpzknCiY1kNiZSNpUXAIf9G9CZOFOWfvo/y2U/jKtoAw77WgNP5ivrg1yzSrS4UBGDe8j8cueCr1O3O59wDajbvjpjEFHxx2V2K8AZY6hKxGOFLPXjpBcU0FxajxthWU2R0xPjTSHAMB97/m9xJRzGoB4iJAiQi6fQjFrJ4uoBGs21MhVXOCWdYRrW2R3oykpv09OSvmlm9xBzeY+O34UyvfA2Q==
X-YMail-OSG: NQpNlhsVM1mTdEb0t3qCWxuO7HLZcWdm1MKgaBVmWKHy0KsHU3.Mil9FmLnFNb3
 t.gDYIhkrQfaHrnjF7ScUT5klIRG15hcW6IeCWLYSbqSmbBn2ez0gSd5.qQz7nOLouF7aEaxhRTZ
 POQ3GluWlisqshkn_ahmL3F0mrqPZJg5xrHeCsbQr17vlRGOEoatCN6Ni6i4XM5ziDIFLXP1vJUj
 ac4DbnVZEsjY5FrST11wrB7xyijETj.GcLhosHrchsAehgT_9PLM4moTxRXiDE70IvxtyrFW0fd2
 FSwRNwuIsiUGvJ2iKBllluGyK87ACC9hvq9Z4VTzaQ7lsXVKG2R95WVu8aCTvh.fXkTiwtysK2s2
 hcJA4xp9tiEDvrxf_VcPUo3B2sjcSHLtG6QrmCe10l1CMVtnce2Pk7KoOVg5zUn9tpUo8b0DGpEC
 eXU.1APIgwbzb_rNebK221_PQtii3FB47JrhN8nIY_dtCKKreC1HFsq6sycUmmysX0Xzfjy1C__N
 Qn4pbdGdwbqCn67d6eO6NtN3pYfo9YLqKn50.UqNGQBwaBDXhn677NEe3LIc2CeB11qArG5.vLjY
 GkdE9G9as8Qxq.OJs.PYd27gG56aIPfOUXFhkAkcqt2R4b_1La2wNjw5IEF4zPBKG1Mrcn8K1Fbe
 gLblDfNRFHDit57ZBdkhksN5D.EQCrAAQXY38NVIsYIWe_Au05yqws9_6DcLeguB_7NNPCxn.A7e
 hfE7N0oW8A8E3CHMoSyW.SvPuVaDDrJbi2LcCINgfN9yvHsW0g0JHjh3wSexJ6sREH4UodjBRFf_
 oSMHHZDWeSDbzTfFKgno0dHDUh6UDmI7R7RFLJtipum7PWMe88iuoJ_4bVdITJPqwplmQTcymbLv
 xe_pJBujCaW_KT0zvvGZWQVWCbCBTAHXiFXtOu.IM8g17RgmvfXp7ne3sgx78slQ8wPQ63sWSx.I
 gMlQ0Y6oyavTfT3vi8hgJs6ZHSXsXuMBoUFUuc.avDZDFgjbyZU._WMx0AohVKwTi9GpuP8RslDs
 Z2ST5tsSxYeiOQGsJcUCJiEY2C2MfYsCpgEephI2sDrCyiPs3cMIp8.n0SU_A5H7QgqwKz0faGMI
 -
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic308.consmr.mail.ne1.yahoo.com with HTTP; Fri, 14 Dec 2018 18:25:50 +0000
Received: from 18.175.75.177.infopasa.com.br (EHLO gateway.troianet.com.br)
 ([177.75.175.18])
 by smtp431.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID
 18f4733ac8348c51d3857b98a42d993d; 
 Fri, 14 Dec 2018 18:25:45 +0000 (UTC)
From: Eneas U de Queiroz &lt;cote2004-github@yahoo.com&gt;
To: openwrt-devel@lists.openwrt.org
Cc: Eneas U de Queiroz &lt;cote2004-github@yahoo.com&gt;
Subject: [PATCH 1/1] omcproxy: fix compilation on little-endian CPUs
Date: Fri, 14 Dec 2018 16:25:27 -0200
Message-Id: &lt;20181214182527.30579-2-cote2004-github@yahoo.com&gt;
X-Mailer: git-send-email 2.18.1
In-Reply-To: &lt;20181214182527.30579-1-cote2004-github@yahoo.com&gt;
References: &lt;20181214182527.30579-1-cote2004-github@yahoo.com&gt;
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 
X-CRM114-CacheID: sfid-20181214_102603_351986_10DBF5A6 
X-CRM114-Status: UNSURE (   7.00  )
X-CRM114-Notice: Please train this message.
X-Spam-Score: -0.2 (/)
X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary:
 Content analysis details:   (-0.2 points)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at http://www.dnswl.org/,
 no trust [66.163.187.34 listed in list.dnswl.org]
 -0.0 SPF_PASS               SPF: sender matches SPF record
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (cote2004-github[at]yahoo.com)
 -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
 -0.1 DKIM_VALID_EF          Message has a valid DKIM or DK signature from
 envelope-from domain
 -0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from
 author's domain
 0.1 DKIM_SIGNED            Message has a DKIM or DK signature, not necessarily
 valid

Don't use cpu_to_be32 outside of a function.

Signed-off-by: Eneas U de Queiroz &lt;cote2004-github@yahoo.com&gt;

diff --git a/package/network/services/omcproxy/Makefile b/package/network/services/omcproxy/Makefile
index 28de833a1c..e121fa0b23 100644
--- a/package/network/services/omcproxy/Makefile
+++ b/package/network/services/omcproxy/Makefile
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=omcproxy
-PKG_RELEASE:=4
+PKG_RELEASE:=5
 
 PKG_SOURCE_URL:=https://github.com/sbyx/omcproxy.git
 PKG_SOURCE_PROTO:=git
diff --git a/package/network/services/omcproxy/patches/100-mrib.c-don-t-use-cpu_to_be32-outside-of-function.patch b/package/network/services/omcproxy/patches/100-mrib.c-don-t-use-cpu_to_be32-outside-of-function.patch
new file mode 100644
index 0000000000..58bc3b63fe
--- /dev/null
+++ b/package/network/services/omcproxy/patches/100-mrib.c-don-t-use-cpu_to_be32-outside-of-function.patch
@@ -0,0 +1,37 @@
+From 721064f2eb1dabe5bda63dcaff249b73ab891e6c Mon Sep 17 00:00:00 2001
+From: Eneas U de Queiroz &lt;cote2004-github@yahoo.com&gt;
+Date: Fri, 14 Dec 2018 15:13:41 -0200
+Subject: [PATCH] mrib.c: don't use cpu_to_be32 outside of function
+
+cpu_to_be32 is not a constant, so it can't be used outside of a
+function.
+
+Signed-off-by: Eneas U de Queiroz &lt;cote2004-github@yahoo.com&gt;
+
+diff --git a/src/mrib.c b/src/mrib.c
+index 476768b..bdb4493 100644
+--- a/src/mrib.c
++++ b/src/mrib.c
+@@ -21,6 +21,7 @@
+ #include &lt;stdio.h&gt;
+ #include &lt;string.h&gt;
+ #include &lt;stdlib.h&gt;
++#include &lt;endian.h&gt;
+ #include &lt;sys/socket.h&gt;
+ #include &lt;sys/ioctl.h&gt;
+ #include &lt;unistd.h&gt;
+@@ -54,7 +55,13 @@ struct mrib_iface {
+ 	struct uloop_timeout timer;
+ };
+ 
+-static uint32_t ipv4_rtr_alert = cpu_to_be32(0x94040000);
++/* we can't use cpu_to_be32 outside a function */
++#if __BYTE_ORDER == __BIG_ENDIAN
++static uint32_t ipv4_rtr_alert = 0x94040000;
++#else
++static uint32_t ipv4_rtr_alert = 0x00000494;
++#endif
++
+ static struct {
+ 	struct ip6_hbh hdr;
+ 	struct ip6_opt_router rt;

]