aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/sblim-sfcc/sblim-sfcc/0001-cimxml-Include-sys-select.h-for-fd_set.patch
blob: 19e50ec79a1fefb2c8524e25557c25c1e1766b2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
From 9981542cb443cdaf9134500b78fe7eda9f99861f Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 7 Sep 2017 21:43:26 -0700
Subject: [PATCH] cimxml: Include sys/select.h for fd_set

define __SOCKADDR_ARG on linux when libc != glibc

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
Upstream-Status: Pending
 backend/cimxml/indicationlistener.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/backend/cimxml/indicationlistener.c b/backend/cimxml/indicationlistener.c
index 0d7d9fe..37c45ae 100755
--- a/backend/cimxml/indicationlistener.c
+++ b/backend/cimxml/indicationlistener.c
@@ -25,6 +25,7 @@
 
 #include <pthread.h>
 #include <sys/socket.h>
+#include <sys/select.h>
 #include <netinet/in.h>
 #include <fcntl.h>
 #include <errno.h>
@@ -36,7 +37,7 @@ static int do_listen=1;
 #define hdrBufsize 5000
 #define hdrLimmit 5000
 
-#ifdef __APPLE__
+#if defined(__APPLE__) || (defined(__linux__) && !defined(__GLIBC__))
 # define __SOCKADDR_ARG   struct sockaddr *__restrict
 #endif
 
-- 
2.14.1