#include <config.h>
#include <glib.h>
-#ifdef PLATFORM_WIN32
+#include "mini.h"
+
+#if defined(PLATFORM_WIN32) || !defined(HAVE_SYS_IPC_H) || !defined(HAVE_SYS_SEM_H)
int mini_wapi_hps (int argc, char **argv)
{
static const gchar *unused_details (struct _WapiHandleShared *handle);
static const gchar *unshared_details (struct _WapiHandleShared *handle);
+#if 0
static const gchar *thread_details (struct _WapiHandleShared *handle);
+#endif
static const gchar *namedmutex_details (struct _WapiHandleShared *handle);
static const gchar *namedsem_details (struct _WapiHandleShared *handle);
static const gchar *namedevent_details (struct _WapiHandleShared *handle);
unused_details,
unshared_details, /* file */
unshared_details, /* console */
- thread_details,
+ unshared_details, /* thread */
unshared_details, /* sem */
unshared_details, /* mutex */
unshared_details, /* event */
file_share = &_wapi_fileshare_layout->share_info[i];
if (file_share->handle_refs > 0) {
- g_print ("dev: 0x%llx ino: %lld open pid: %d share: 0x%x access: 0x%x refs: %d\n", file_share->device, file_share->inode, file_share->opened_by_pid, file_share->sharemode, file_share->access, file_share->handle_refs);
+ g_print ("dev: 0x%llx ino: %lld open pid: %d share: 0x%x access: 0x%x refs: %d\n", (long long int)file_share->device, (long long int)file_share->inode, file_share->opened_by_pid, file_share->sharemode, file_share->access, file_share->handle_refs);
}
}
return("unshared details");
}
+#if 0
static const gchar *thread_details (struct _WapiHandleShared *handle)
{
static gchar buf[80];
return(buf);
}
+#endif
static const gchar *namedmutex_details (struct _WapiHandleShared *handle)
{