* @APPLE_LICENSE_HEADER_END@
*/
+#include <TargetConditionals.h>
+
+#if TARGET_IPHONE_SIMULATOR
+struct _not_empty;
+#else
+
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/socket.h>
out->count++;
}
- freeList(comma);
+ free_string_list(comma);
}
- freeList(semi);
+ free_string_list(semi);
TAILQ_INSERT_TAIL(&bsd_out_rule, out, entries);
}
else if (r->type == DST_TYPE_WALL)
{
-#ifndef CONFIG_IPHONE
+#if !TARGET_OS_EMBEDDED
FILE *pw = popen(_PATH_WALL, "w");
if (pw < 0)
{
{
if (msg == NULL) return;
+ OSAtomicIncrement32(&global.bsd_queue_count);
asl_msg_retain((asl_msg_t *)msg);
dispatch_async(bsd_out_queue, ^{
_bsd_match_and_send(msg);
asl_msg_release((asl_msg_t *)msg);
+ OSAtomicDecrement32(&global.bsd_queue_count);
});
}
return 0;
}
+
+#endif /* !TARGET_IPHONE_SIMULATOR */