aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/lantiq/ltq-ifxos/patches/001-warnings.patch
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-11-24 20:39:59 +0000
committerJohn Crispin <blogic@openwrt.org>2015-11-24 20:39:59 +0000
commitaaac80ef61fb55e2452f2fefa024110c0973c601 (patch)
treedcdb4805d267de7753b9e09c92640c15fda5e86c /package/kernel/lantiq/ltq-ifxos/patches/001-warnings.patch
parentf12e97c895de2f756841458ebf5e3a0b3eb9ceea (diff)
downloadmaster-187ad058-aaac80ef61fb55e2452f2fefa024110c0973c601.tar.gz
master-187ad058-aaac80ef61fb55e2452f2fefa024110c0973c601.tar.bz2
master-187ad058-aaac80ef61fb55e2452f2fefa024110c0973c601.zip
lantiq: ltq-ifxos: fix build warnings
This makes the build script use the same configure options as used by Lantiq UGW and fixes some warnings and cleans up some of the patches. Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47630 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/lantiq/ltq-ifxos/patches/001-warnings.patch')
-rw-r--r--package/kernel/lantiq/ltq-ifxos/patches/001-warnings.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/package/kernel/lantiq/ltq-ifxos/patches/001-warnings.patch b/package/kernel/lantiq/ltq-ifxos/patches/001-warnings.patch
new file mode 100644
index 0000000000..78940649c5
--- /dev/null
+++ b/package/kernel/lantiq/ltq-ifxos/patches/001-warnings.patch
@@ -0,0 +1,24 @@
+--- 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;
+
+ /**
+ 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;
+ }