summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/opensaf/opensaf/0001-src-Add-missing-header-limits.h-for-_POSIX_HOST_NAME.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-daemons/opensaf/opensaf/0001-src-Add-missing-header-limits.h-for-_POSIX_HOST_NAME.patch')
-rw-r--r--meta-networking/recipes-daemons/opensaf/opensaf/0001-src-Add-missing-header-limits.h-for-_POSIX_HOST_NAME.patch122
1 files changed, 122 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/opensaf/opensaf/0001-src-Add-missing-header-limits.h-for-_POSIX_HOST_NAME.patch b/meta-networking/recipes-daemons/opensaf/opensaf/0001-src-Add-missing-header-limits.h-for-_POSIX_HOST_NAME.patch
new file mode 100644
index 000000000..4a2a825f9
--- /dev/null
+++ b/meta-networking/recipes-daemons/opensaf/opensaf/0001-src-Add-missing-header-limits.h-for-_POSIX_HOST_NAME.patch
@@ -0,0 +1,122 @@
1From 6442b57a855e273aa5a3d93e8596783cea128073 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 15 Sep 2017 09:39:40 -0700
4Subject: [PATCH] src: Add missing header limits.h for _POSIX_HOST_NAME_MAX
5
6Use _GNU_SOURCE instead of libc internal __USE_GNU
7Do not use the deprecated headers under include/sys
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 src/base/os_defs.h | 5 +++--
12 src/mds/mds_dt_tcp.c | 1 -
13 src/mds/mds_dt_tcp_disc.h | 2 +-
14 src/mds/mds_dt_tipc.c | 1 -
15 src/mds/mds_dt_tipc.h | 2 +-
16 src/mds/mds_dt_trans.c | 1 -
17 src/ntf/ntfd/NtfLogger.cc | 2 +-
18 7 files changed, 6 insertions(+), 8 deletions(-)
19
20diff --git a/src/base/os_defs.h b/src/base/os_defs.h
21index 50a9bf5fc..af6842863 100644
22--- a/src/base/os_defs.h
23+++ b/src/base/os_defs.h
24@@ -47,17 +47,18 @@
25 #include <sys/stat.h>
26 #include <sys/msg.h> /* Added for message-queues : PM : 28/10/03 */
27 #include <syslog.h>
28-#ifndef __USE_GNU
29+#include <limits.h>
30+#ifndef _GNU_SOURCE
31 struct msgbuf {
32 long int mtype;
33 char mtext[1];
34 };
35 #endif /* else defined in <sys/msg.h> */
36 #include <sys/time.h>
37-#include <sys/fcntl.h>
38 #include <sys/socket.h>
39 #include <netinet/in.h>
40
41+#include <fcntl.h>
42 #include <signal.h>
43 #include <pthread.h>
44
45diff --git a/src/mds/mds_dt_tcp.c b/src/mds/mds_dt_tcp.c
46index 1407eb1ab..a87c22faa 100644
47--- a/src/mds/mds_dt_tcp.c
48+++ b/src/mds/mds_dt_tcp.c
49@@ -27,7 +27,6 @@
50
51 #include <stdlib.h>
52 #include <sched.h>
53-#include <sys/poll.h>
54 #include <poll.h>
55 #include <sys/types.h>
56 #include <unistd.h>
57diff --git a/src/mds/mds_dt_tcp_disc.h b/src/mds/mds_dt_tcp_disc.h
58index a6249d73e..574f52681 100644
59--- a/src/mds/mds_dt_tcp_disc.h
60+++ b/src/mds/mds_dt_tcp_disc.h
61@@ -24,7 +24,7 @@
62 #include "base/ncssysf_tsk.h"
63 #include "base/ncssysf_mem.h"
64 #include "mds_dt_tcp_disc.h"
65-#include "sys/poll.h"
66+#include <poll.h>
67
68 /* mds_indentifire + mds_version + msg_type + scope_type + server_type +
69 server_instance_lower + server_instance_upper + sub_ref_val + sub_ref_val +
70diff --git a/src/mds/mds_dt_tipc.c b/src/mds/mds_dt_tipc.c
71index 37745e7f0..9b3255567 100644
72--- a/src/mds/mds_dt_tipc.c
73+++ b/src/mds/mds_dt_tipc.c
74@@ -35,7 +35,6 @@
75 #include <stdbool.h>
76 #include <stdlib.h>
77 #include <sched.h>
78-#include <sys/poll.h>
79 #include <poll.h>
80 #include <sys/types.h>
81 #include <unistd.h>
82diff --git a/src/mds/mds_dt_tipc.h b/src/mds/mds_dt_tipc.h
83index e73a11b09..401d208c2 100644
84--- a/src/mds/mds_dt_tipc.h
85+++ b/src/mds/mds_dt_tipc.h
86@@ -32,7 +32,7 @@
87 #include <assert.h>
88 #include <string.h>
89 #include <sys/param.h>
90-#include <sys/poll.h>
91+#include <poll.h>
92 #include <netdb.h>
93 #include <errno.h>
94 #include <fcntl.h>
95diff --git a/src/mds/mds_dt_trans.c b/src/mds/mds_dt_trans.c
96index 6f621e04e..5aacbd33e 100644
97--- a/src/mds/mds_dt_trans.c
98+++ b/src/mds/mds_dt_trans.c
99@@ -26,7 +26,6 @@
100 #include "mds_core.h"
101 #include "base/osaf_utility.h"
102
103-#include <sys/poll.h>
104 #include <poll.h>
105
106 #define MDS_PROT_TCP 0xA0
107diff --git a/src/ntf/ntfd/NtfLogger.cc b/src/ntf/ntfd/NtfLogger.cc
108index 84014b578..31b1ccc6c 100644
109--- a/src/ntf/ntfd/NtfLogger.cc
110+++ b/src/ntf/ntfd/NtfLogger.cc
111@@ -20,7 +20,7 @@
112 * INCLUDE FILES
113 * ========================================================================
114 */
115-#include <sys/poll.h>
116+#include <poll.h>
117
118 #include "base/osaf_utility.h"
119 #include <saAis.h>
120--
1212.14.1
122