From 9aebc5f1a73e929897a1d6206b8923bf1ab949bb Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 8 Jan 2019 18:37:15 -0600 Subject: Ed Maste says freebsd hasn't got sys/xattr.h, so move it to portability.h. --- lib/lsm.h | 2 -- lib/portability.h | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/lsm.h b/lib/lsm.h index ada54c98..556700ce 100644 --- a/lib/lsm.h +++ b/lib/lsm.h @@ -3,8 +3,6 @@ * Copyright 2015 Rob Landley */ -#include - #if CFG_TOYBOX_SELINUX #include #else diff --git a/lib/portability.h b/lib/portability.h index a049e7a6..932752c6 100644 --- a/lib/portability.h +++ b/lib/portability.h @@ -180,6 +180,10 @@ int clearenv(void); #include #endif +#ifndef __FreeBSD__ +#include +#endif + // Android is missing some headers and functions // "generated/config.h" is included first #if CFG_TOYBOX_SHADOW -- cgit v1.2.3