aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/lantiq/ltq-ifxos/patches/001-warnings.patch
diff options
context:
space:
mode:
authorJan Hoffmann <jan@3e8.eu>2021-10-28 18:56:13 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2022-01-08 00:49:59 +0100
commit9d878d84227ffac92b5616fb9a4253cae28fc580 (patch)
treea36c22a54a2f3a3c4e396fd5cde60a036a790c61 /package/kernel/lantiq/ltq-ifxos/patches/001-warnings.patch
parent5ee1e045174bad1b7f2754bb022346acc60220f5 (diff)
downloadupstream-9d878d84227ffac92b5616fb9a4253cae28fc580.tar.gz
upstream-9d878d84227ffac92b5616fb9a4253cae28fc580.tar.bz2
upstream-9d878d84227ffac92b5616fb9a4253cae28fc580.zip
ltq-ifxos: update to 1.7.1
Signed-off-by: Jan Hoffmann <jan@3e8.eu> [fix warnings, switch to tag tarball, update patches] Signed-off-by: Andre Heider <a.heider@gmail.com>
Diffstat (limited to 'package/kernel/lantiq/ltq-ifxos/patches/001-warnings.patch')
-rw-r--r--package/kernel/lantiq/ltq-ifxos/patches/001-warnings.patch32
1 files changed, 9 insertions, 23 deletions
diff --git a/package/kernel/lantiq/ltq-ifxos/patches/001-warnings.patch b/package/kernel/lantiq/ltq-ifxos/patches/001-warnings.patch
index 78940649c5..2c04f9b009 100644
--- a/package/kernel/lantiq/ltq-ifxos/patches/001-warnings.patch
+++ b/package/kernel/lantiq/ltq-ifxos/patches/001-warnings.patch
@@ -1,24 +1,10 @@
---- a/src/include/linux/ifxos_linux_thread.h
-+++ b/src/include/linux/ifxos_linux_thread.h
-@@ -206,7 +206,7 @@ typedef struct
- /**
- LINUX User Thread - map the Thread ID.
- */
--typedef int IFXOS_thread_t;
-+typedef pthread_t IFXOS_thread_t;
+--- a/src/include/linux/ifxos_linux_common.h
++++ b/src/include/linux/ifxos_linux_common.h
+@@ -49,6 +49,7 @@
+ IFX Linux adaptation - Includes (Linux Kernel)
+ ========================================================================= */
+ #include <linux/kernel.h>
++#include <linux/version.h>
+ #include <asm/byteorder.h>
- /**
- LINUX Kernel Process - map the Process ID.
---- a/src/linux/ifxos_linux_socket_appl.c
-+++ b/src/linux/ifxos_linux_socket_appl.c
-@@ -363,8 +363,8 @@ IFX_int_t IFXOS_SocketSendTo(
- IFXOS_RETURN_IF_POINTER_NULL(pBuffer, IFX_ERROR);
- IFXOS_RETURN_IF_ARG_LE_ZERO(bufSize_byte, IFX_ERROR);
-
-- ret = (IFX_int_t)sendto((int)socFd, (const char*)pBuffer,
-- (int)bufSize_byte, 0, pSocAddr, sizeof(IFXOS_sockAddr_t));
-+ ret = (IFX_int_t)sendto(socFd, pBuffer,
-+ bufSize_byte, 0, (struct sockaddr *)pSocAddr, sizeof(IFXOS_sockAddr_t));
-
- return ret;
- }
+ /* ============================================================================