diff --git a/src/common/compat_threads.c b/src/common/compat_threads.c index 648eaa2d80..ba48eb4d1f 100644 --- a/src/common/compat_threads.c +++ b/src/common/compat_threads.c @@ -3,6 +3,8 @@ * Copyright (c) 2007-2015, The Tor Project, Inc. */ /* See LICENSE for licensing information */ +#define _GNU_SOURCE + #include "orconfig.h" #define _GNU_SOURCE #include @@ -15,12 +17,12 @@ #ifdef HAVE_SYS_EVENTFD_H #include #endif -#ifdef HAVE_UNISTD_H -#include -#endif #ifdef HAVE_FCNTL_H #include #endif +#ifdef HAVE_UNISTD_H +#include +#endif /** Return a newly allocated, ready-for-use mutex. */ tor_mutex_t *