If implementation files include the sched.h header prior to having
_GNU_SOURCE defined by getcpu.h, we get in a situation where
sched_getcpu() can be undeclared.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
* Dual LGPL v2.1/GPL v2 license.
*/
+#define _GNU_SOURCE
#include <stdint.h>
#include <lttng/ust-events.h>
#include "lttng/bitfield.h"
* Dual LGPL v2.1/GPL v2 license.
*/
+#define _GNU_SOURCE
#include <stdint.h>
#include <lttng/ust-events.h>
#include "lttng/bitfield.h"
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#define _GNU_SOURCE
#include <urcu/compiler.h>
#include <sched.h>
* Dual LGPL v2.1/GPL v2 license.
*/
+#define _GNU_SOURCE
#include <urcu/arch.h>
#include <lttng/ringbuffer-config.h>
* Dual LGPL v2.1/GPL v2 license.
*/
+#define _GNU_SOURCE
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/stat.h>
* Dual LGPL v2.1/GPL v2 license.
*/
+#define _GNU_SOURCE
#include <unistd.h>
#include "usterr.h"
#include <pthread.h>