Include sys/sysctl.h after i3.h to prevent redefinition warnings caused by queue.h on OS X.

This commit is contained in:
Marcus Crestani 2014-06-11 20:53:22 +02:00 committed by Michael Stapelberg
parent e562aeb338
commit a76a81f80b
1 changed files with 4 additions and 4 deletions

View File

@ -21,10 +21,6 @@
#include <sys/stat.h>
#include <errno.h>
#include <pthread.h>
#if defined(__APPLE__)
#include <sys/types.h>
#include <sys/sysctl.h>
#endif
#include "util.h"
#include "log.h"
@ -32,6 +28,10 @@
#include "libi3.h"
#include "shmlog.h"
#if defined(__APPLE__)
#include <sys/sysctl.h>
#endif
static bool debug_logging = false;
static bool verbose = false;
static FILE *errorfile;