X-Git-Url: https://git.saurik.com/apple/syslog.git/blobdiff_plain/d98c3baa5cae23155bd982d95133aaaacd69e227..8158235332f5a3f4f20cebe26bf739b481ca2df5:/syslogd.tproj/klog_in.c diff --git a/syslogd.tproj/klog_in.c b/syslogd.tproj/klog_in.c index fddf368..1cc1075 100644 --- a/syslogd.tproj/klog_in.c +++ b/syslogd.tproj/klog_in.c @@ -21,6 +21,12 @@ * @APPLE_LICENSE_HEADER_END@ */ +#include + +#if TARGET_IPHONE_SIMULATOR +struct _not_empty; +#else + #include #include #include @@ -65,7 +71,7 @@ klog_in_acceptdata(int fd) { *q = '\0'; m = asl_input_parse(p, q - p, NULL, SOURCE_KERN); - dispatch_async(global.work_queue, ^{ process_message(m, SOURCE_KERN); }); + process_message(m, SOURCE_KERN); p = q + 1; } } @@ -131,3 +137,5 @@ klog_in_reset(void) { return 0; } + +#endif /* !TARGET_IPHONE_SIMULATOR */