aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-09-24 11:37:32 -0700
committerKhem Raj <raj.khem@gmail.com>2018-09-24 11:49:45 -0700
commit7b427e1187b3ab3ac354a8eea969b2c91a99f0fb (patch)
tree74b198b8b269224a1eec2fc4b24728633044feec /meta-networking/recipes-daemons
parent4a0e53cb229f97e9cc3dd925b8db334e07b85768 (diff)
downloadmeta-openembedded-7b427e1187b3ab3ac354a8eea969b2c91a99f0fb.tar.gz
vsftpd: Fix build with musl/x86
F_SETLKW64 and F_SETLK64 are defined in include/asm-generic/fcntl.h on musl target but just including this header does not work since both include/asm-generic/fcntl.h and include/fcntl.h define same structures resulting in conflicting declaration of structs. Having local definitions of these values seems reasonable here. Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-daemons')
-rw-r--r--meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.3.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.3.bb b/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.3.bb
index 80b0117c88..2e3e0e8843 100644
--- a/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.3.bb
+++ b/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.3.bb
@@ -47,7 +47,7 @@ inherit update-rc.d useradd systemd
CONFFILES_${PN} = "${sysconfdir}/vsftpd.conf"
LDFLAGS_append =" -lcrypt -lcap"
-
+CFLAGS_append_libc-musl = " -D_GNU_SOURCE -include fcntl.h"
EXTRA_OEMAKE = "-e MAKEFLAGS="
do_configure() {