diff options
author | Rob Landley <rob@landley.net> | 2019-01-08 18:37:15 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-01-08 18:37:15 -0600 |
commit | 9aebc5f1a73e929897a1d6206b8923bf1ab949bb (patch) | |
tree | 04316349ef58cbd1cfa07f81c73809ff814ea9eb /lib | |
parent | a30a4431bacd2856ceb6b56cf5ee94694b606194 (diff) | |
download | toybox-9aebc5f1a73e929897a1d6206b8923bf1ab949bb.tar.gz |
Ed Maste says freebsd hasn't got sys/xattr.h, so move it to portability.h.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lsm.h | 2 | ||||
-rw-r--r-- | lib/portability.h | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -3,8 +3,6 @@ * Copyright 2015 Rob Landley <rob@landley.net> */ -#include <sys/xattr.h> - #if CFG_TOYBOX_SELINUX #include <selinux/selinux.h> #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 <pty.h> #endif +#ifndef __FreeBSD__ +#include <sys/xattr.h> +#endif + // Android is missing some headers and functions // "generated/config.h" is included first #if CFG_TOYBOX_SHADOW |