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 <link.h>, <dlfcn.h> suffices.

(cherry picked from commit 84576ce861)
This commit is contained in:
Thomas Haller 2018-01-09 07:30:31 +01:00 committed by Lubomir Rintel
parent 5269978e37
commit ec630dc256

View file

@ -16,14 +16,13 @@
* Copyright 2017, 2018 Red Hat, Inc.
*/
#define _GNU_SOURCE
#include <link.h>
#include "nm-default.h"
#define NM_JANSSON_C
#include "nm-json.h"
#include <dlfcn.h>
void *_nm_jansson_json_object_iter_value;
void *_nm_jansson_json_object_key_to_iter;
void *_nm_jansson_json_integer;