From f027b71f6597f5081c87b70e044a4d0c4202766d Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 28 Apr 2016 18:58:08 +0200 Subject: [PATCH] build: cleanup include of It is recomended to include with angle brackets [1]. Note, that usually we don't include directly, except in two places we have to (because there we include conflicting libraries that must be included before "nm-default.h"). In that case, define __CONFIG_H__ which is used as include guard around by "nm-default.h". [1] https://www.gnu.org/software/autoconf/manual/autoconf-2.66/html_node/Configuration-Headers.html --- src/dhcp-manager/nm-dhcp-dhclient.c | 3 ++- src/ppp-manager/nm-pppd-plugin.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/dhcp-manager/nm-dhcp-dhclient.c b/src/dhcp-manager/nm-dhcp-dhclient.c index 4b6d301b5..17517c2f1 100644 --- a/src/dhcp-manager/nm-dhcp-dhclient.c +++ b/src/dhcp-manager/nm-dhcp-dhclient.c @@ -18,7 +18,8 @@ * Copyright (C) 2005 - 2012 Red Hat, Inc. */ -#include "config.h" +#include +#define __CONFIG_H__ #define _XOPEN_SOURCE #include diff --git a/src/ppp-manager/nm-pppd-plugin.c b/src/ppp-manager/nm-pppd-plugin.c index 4c16f1f0f..9c47c339a 100644 --- a/src/ppp-manager/nm-pppd-plugin.c +++ b/src/ppp-manager/nm-pppd-plugin.c @@ -19,7 +19,7 @@ * Copyright (C) 2008 Red Hat, Inc. */ -#include "config.h" +#include #define ___CONFIG_H__ #include