summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/libsmi
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-09-06 12:12:16 -0700
committerKhem Raj <raj.khem@gmail.com>2022-09-07 16:44:54 -0700
commitb7cef6a1bc808432e1667b6ad5afce702f6b0ce5 (patch)
treead15e04535d53323c4dd51ebf8f94557fc311190 /meta-oe/recipes-support/libsmi
parent44ab7f999157bc79d6b7041ccca89fb7a2b8c228 (diff)
downloadmeta-openembedded-b7cef6a1bc808432e1667b6ad5afce702f6b0ce5.tar.gz
libsmi: Define _DEFAULT_SOURCE for timegm API
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/libsmi')
-rw-r--r--meta-oe/recipes-support/libsmi/libsmi/0001-parser-yang-Define-_DEFAULT_SOURCE.patch28
-rw-r--r--meta-oe/recipes-support/libsmi/libsmi_0.5.0.bb1
2 files changed, 29 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/libsmi/libsmi/0001-parser-yang-Define-_DEFAULT_SOURCE.patch b/meta-oe/recipes-support/libsmi/libsmi/0001-parser-yang-Define-_DEFAULT_SOURCE.patch
new file mode 100644
index 000000000..9354a889a
--- /dev/null
+++ b/meta-oe/recipes-support/libsmi/libsmi/0001-parser-yang-Define-_DEFAULT_SOURCE.patch
@@ -0,0 +1,28 @@
1From 86b706f694b822d8028fd36320147767056d2ffa Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 6 Sep 2022 12:09:00 -0700
4Subject: [PATCH] parser-yang: Define _DEFAULT_SOURCE
5
6This is needed for timegm API
7
8Upstream-Status: Pending
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 lib/parser-yang.y | 1 +
12 1 file changed, 1 insertion(+)
13
14diff --git a/lib/parser-yang.y b/lib/parser-yang.y
15index b111607..0ded9d2 100644
16--- a/lib/parser-yang.y
17+++ b/lib/parser-yang.y
18@@ -21,6 +21,7 @@
19 #ifdef BACKEND_YANG
20
21 #define _ISOC99_SOURCE
22+#define _DEFAULT_SOURCE
23 #include <stdio.h>
24 #include <errno.h>
25 #include <stdlib.h>
26--
272.37.3
28
diff --git a/meta-oe/recipes-support/libsmi/libsmi_0.5.0.bb b/meta-oe/recipes-support/libsmi/libsmi_0.5.0.bb
index 53c59de78..33e1b6fab 100644
--- a/meta-oe/recipes-support/libsmi/libsmi_0.5.0.bb
+++ b/meta-oe/recipes-support/libsmi/libsmi_0.5.0.bb
@@ -8,6 +8,7 @@ SRC_URI = "https://www.ibr.cs.tu-bs.de/projects/${BPN}/download/${BP}.tar.gz \
8 file://smi.conf \ 8 file://smi.conf \
9 file://libsmi-fix-the-test-dump-files.patch \ 9 file://libsmi-fix-the-test-dump-files.patch \
10 file://0001-Define-createIdentifierRef-prototype-in-yang-complex.patch \ 10 file://0001-Define-createIdentifierRef-prototype-in-yang-complex.patch \
11 file://0001-parser-yang-Define-_DEFAULT_SOURCE.patch \
11 " 12 "
12 13
13SRC_URI[md5sum] = "4bf47483c06c9f07d1b10fbc74eddf11" 14SRC_URI[md5sum] = "4bf47483c06c9f07d1b10fbc74eddf11"