diff --git a/hw/darwin/darwinKeyboard.c b/hw/darwin/darwinKeyboard.c index 234a70783..dbc449dc3 100644 --- a/hw/darwin/darwinKeyboard.c +++ b/hw/darwin/darwinKeyboard.c @@ -64,12 +64,12 @@ /* Define this to use Alt for Mode_switch. */ #define ALT_IS_MODE_SWITCH 1 -#include -#include #include #include #include #include +#include +#include #include // For the NXSwap* #include "darwin.h" #include "darwinKeyboard.h" diff --git a/hw/darwin/quartz/xpr/x-hash.c b/hw/darwin/quartz/xpr/x-hash.c index 51fbb2877..feffb1b9e 100644 --- a/hw/darwin/quartz/xpr/x-hash.c +++ b/hw/darwin/quartz/xpr/x-hash.c @@ -223,7 +223,7 @@ hash_table_modify (x_hash_table *h, void *k, void *v, int replace) { hash_table_destroy_item (h, ITEM_KEY (item), ITEM_VALUE (item)); - ITEM_KEY (item) = k; + item->next = k; ITEM_VALUE (item) = v; } else