diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-09-06 12:12:16 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-09-07 16:44:54 -0700 |
commit | b7cef6a1bc808432e1667b6ad5afce702f6b0ce5 (patch) | |
tree | ad15e04535d53323c4dd51ebf8f94557fc311190 /meta-oe/recipes-support/libsmi | |
parent | 44ab7f999157bc79d6b7041ccca89fb7a2b8c228 (diff) | |
download | meta-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.patch | 28 | ||||
-rw-r--r-- | meta-oe/recipes-support/libsmi/libsmi_0.5.0.bb | 1 |
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 @@ | |||
1 | From 86b706f694b822d8028fd36320147767056d2ffa Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 6 Sep 2022 12:09:00 -0700 | ||
4 | Subject: [PATCH] parser-yang: Define _DEFAULT_SOURCE | ||
5 | |||
6 | This is needed for timegm API | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | lib/parser-yang.y | 1 + | ||
12 | 1 file changed, 1 insertion(+) | ||
13 | |||
14 | diff --git a/lib/parser-yang.y b/lib/parser-yang.y | ||
15 | index 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 | -- | ||
27 | 2.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 | ||
13 | SRC_URI[md5sum] = "4bf47483c06c9f07d1b10fbc74eddf11" | 14 | SRC_URI[md5sum] = "4bf47483c06c9f07d1b10fbc74eddf11" |