mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 14:00:11 +01:00
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:
parent
5269978e37
commit
ec630dc256
1 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue