diff options
author | Rob Landley <rob@landley.net> | 2015-11-02 08:32:21 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2015-11-02 08:32:21 -0600 |
commit | d20b9ff3ee0f1014a740baed908dc0a08c646fb6 (patch) | |
tree | c575145fa158e4acc746ae1e17db76753263450e /lib | |
parent | 539f8c8b56729d1b6562ade260bf6c44d1f9637b (diff) | |
download | toybox-d20b9ff3ee0f1014a740baed908dc0a08c646fb6.tar.gz |
Don't pass target $CFLAGS to host builds (telling x86 compiler to be big-endian
seldom ends well). Instead add -DBUILD_FOR_HOST to $HOSTCC and wrap #ifdefs
around problematic (smack) includes from toys.h.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lsm.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -3,6 +3,8 @@ * Copyright 2015 Rob Landley <rob@landley.net> */ +#ifndef BUILD_FOR_HOST + #if CFG_TOYBOX_SELINUX #include <selinux/selinux.h> #else @@ -113,3 +115,5 @@ static inline int lsm_fget_context(int file, char **context) return smack_new_label_from_file(file, XATTR_NAME_SMACK, context); return fgetfilecon(file, context); } + +#endif // BUILD_FOR_HOST |