make compile and remove warnings

This commit is contained in:
Love Hornquist Astrand
2009-11-21 17:12:38 -08:00
parent d50689ec8b
commit 7bb7bd72ab
4 changed files with 56 additions and 22 deletions

View File

@@ -35,6 +35,8 @@
#include "config.h"
#define HAVE_LIBDISPATCH 1
#include <sys/types.h>
#include <sys/un.h>
@@ -48,6 +50,22 @@
#include <heim-ipc.h>
#if defined(__APPLE__) && defined(HAVE_LIBDISPATCH)
#include <mach/mach.h>
#include <servers/bootstrap.h>
#include <dispatch/dispatch.h>
#include <bsm/libbsm.h>
#ifndef __APPLE_PRIVATE__ /* awe, using private interface */
typedef boolean_t (*dispatch_mig_callback_t)(mach_msg_header_t *message, mach_msg_header_t *reply);
mach_msg_return_t
dispatch_mig_server(dispatch_source_t ds, size_t maxmsgsz, dispatch_mig_callback_t callback);
#endif
#endif
#include <roken.h>
int