From ec630dc256b3e9cb80cd3ca9872c5a405ae21646 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 9 Jan 2018 07:30:31 +0100 Subject: [PATCH] libnm: cleanup include in "libnm-core/nm-json.c" We already define _GNU_SOURCE in "config.h", depending on configure checks. Also, we always should first include "config.h" (which means to first include "nm-default.h"). Also, we don't need the entire , suffices. (cherry picked from commit 84576ce86155e195985a1924c90782eb9e2e5beb) --- libnm-core/nm-json.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libnm-core/nm-json.c b/libnm-core/nm-json.c index d58898ce20..f9042b1f3a 100644 --- a/libnm-core/nm-json.c +++ b/libnm-core/nm-json.c @@ -16,14 +16,13 @@ * Copyright 2017, 2018 Red Hat, Inc. */ -#define _GNU_SOURCE -#include - #include "nm-default.h" #define NM_JANSSON_C #include "nm-json.h" +#include + void *_nm_jansson_json_object_iter_value; void *_nm_jansson_json_object_key_to_iter; void *_nm_jansson_json_integer;