diff options
author | Thomas Haller <thaller@redhat.com> | 2018-01-09 07:30:31 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-01-16 14:47:24 +0100 |
commit | 84576ce86155e195985a1924c90782eb9e2e5beb (patch) | |
tree | 0a787cd7645e67be059a4a0d4ebd055c89d37b19 | |
parent | e5f3c0fc8a4f6b88fc74b35479a3ac18eeb6fa93 (diff) | |
download | NetworkManager-84576ce86155e195985a1924c90782eb9e2e5beb.tar.gz |
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.
-rw-r--r-- | libnm-core/nm-json.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libnm-core/nm-json.c b/libnm-core/nm-json.c index 695ca98eac..f359a76046 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 <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; |