diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-03-20 21:50:28 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-03-22 09:10:39 -0700 |
commit | 864cea3d642757206fc2f1e07021d881e79b2021 (patch) | |
tree | c218cd31dd9431699d52eca8afbe78e80096fb12 /meta-networking/recipes-protocols | |
parent | 63749f10a4161300ffc94d68a8aa9aeec953e07c (diff) | |
download | meta-openembedded-864cea3d642757206fc2f1e07021d881e79b2021.tar.gz |
rp-pppoe: Define _GNU_SOURCE
Ensures that it picks up definitions of strlcpy() from string.h
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-protocols')
-rw-r--r-- | meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.15.bb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.15.bb b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.15.bb index 4e5def297c..d990388abb 100644 --- a/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.15.bb +++ b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.15.bb | |||
@@ -25,6 +25,9 @@ inherit autotools-brokensep update-rc.d systemd | |||
25 | 25 | ||
26 | CACHED_CONFIGUREVARS += "${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'be', 'rpppoe_cv_pack_bitfields=normal', 'rpppoe_cv_pack_bitfields=rev', d)}" | 26 | CACHED_CONFIGUREVARS += "${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'be', 'rpppoe_cv_pack_bitfields=normal', 'rpppoe_cv_pack_bitfields=rev', d)}" |
27 | 27 | ||
28 | # Needed for strlcpy() | ||
29 | CFLAGS += "-D_GNU_SOURCE" | ||
30 | |||
28 | do_install:append() { | 31 | do_install:append() { |
29 | install -d ${D}${systemd_unitdir}/system | 32 | install -d ${D}${systemd_unitdir}/system |
30 | install -m 0644 ${WORKDIR}/pppoe-server.service ${D}${systemd_unitdir}/system | 33 | install -m 0644 ${WORKDIR}/pppoe-server.service ${D}${systemd_unitdir}/system |