#ifdef ENABLE_MULTITHREADED_COMPRESSION
-#include "wimlib/assert.h"
-#include "wimlib/chunk_compressor.h"
-#include "wimlib/error.h"
-#include "wimlib/list.h"
-#include "wimlib/util.h"
-#ifdef __WIN32__
-# include "wimlib/win32.h" /* win32_get_number_of_processors() */
-#endif
-
#include <errno.h>
#include <limits.h>
#include <pthread.h>
# include <sys/sysctl.h>
#endif
+#include "wimlib/assert.h"
+#include "wimlib/chunk_compressor.h"
+#include "wimlib/error.h"
+#include "wimlib/list.h"
+#include "wimlib/util.h"
+#ifdef __WIN32__
+# include "wimlib/win32.h" /* win32_get_number_of_processors() */
+#endif
+
struct message_queue {
struct list_head list;
pthread_mutex_t lock;