X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/8f6c56a50524aa785f7e596d52dddfb331e18961..ca66cea69e6e866fd781ae2260d9474bdd48f2ca:/bsd/hfs/hfs_encodinghint.c diff --git a/bsd/hfs/hfs_encodinghint.c b/bsd/hfs/hfs_encodinghint.c index 7504e103a..94b926e9e 100644 --- a/bsd/hfs/hfs_encodinghint.c +++ b/bsd/hfs/hfs_encodinghint.c @@ -25,6 +25,7 @@ * * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ */ +#if HFS #include #include @@ -930,3 +931,17 @@ hfs_setencodingbias(u_int32_t bias) lck_mtx_unlock(&encodinglst_mutex); } +#else /* not HFS - temp workaround until 4277828 is fixed */ +/* stubs for exported routines that aren't present when we build kernel without HFS */ + +#include + +u_int32_t hfs_pickencoding(u_int16_t *src, int len); + +u_int32_t hfs_pickencoding(__unused u_int16_t *src, __unused int len) +{ + return(0); +} + +#endif /* HFS */ +