diff options
| -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 0000000000..9354a889a0 --- /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 53c59de78a..33e1b6fabd 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" |
