]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/hfs/hfs_encodinghint.c
xnu-2050.48.11.tar.gz
[apple/xnu.git] / bsd / hfs / hfs_encodinghint.c
index 7504e103a31b1251e81c76921a2688a55145c77a..94b926e9ecf3f4e316a38c5731bb483d3ba84b7d 100644 (file)
@@ -25,6 +25,7 @@
  * 
  * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  */
+#if HFS
 
 #include <sys/param.h>
 #include <hfs/hfs_macos_defs.h>
@@ -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 <sys/types.h>
+
+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 */
+