summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-03-20 21:50:28 -0700
committerKhem Raj <raj.khem@gmail.com>2023-03-22 09:10:39 -0700
commit864cea3d642757206fc2f1e07021d881e79b2021 (patch)
treec218cd31dd9431699d52eca8afbe78e80096fb12
parent63749f10a4161300ffc94d68a8aa9aeec953e07c (diff)
downloadmeta-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>
-rw-r--r--meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.15.bb3
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 4e5def297..d990388ab 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
26CACHED_CONFIGUREVARS += "${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'be', 'rpppoe_cv_pack_bitfields=normal', 'rpppoe_cv_pack_bitfields=rev', d)}" 26CACHED_CONFIGUREVARS += "${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'be', 'rpppoe_cv_pack_bitfields=normal', 'rpppoe_cv_pack_bitfields=rev', d)}"
27 27
28# Needed for strlcpy()
29CFLAGS += "-D_GNU_SOURCE"
30
28do_install:append() { 31do_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