build: cleanup include of <config.h>

It is recomended to include <config.h> with angle brackets [1].

Note, that usually we don't include <config.h> 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
<config.h> by "nm-default.h".

[1] https://www.gnu.org/software/autoconf/manual/autoconf-2.66/html_node/Configuration-Headers.html
This commit is contained in:
Thomas Haller
2016-04-28 18:58:08 +02:00
parent 497a21fb3d
commit f027b71f65
2 changed files with 3 additions and 2 deletions

View File

@@ -18,7 +18,8 @@
* Copyright (C) 2005 - 2012 Red Hat, Inc.
*/
#include "config.h"
#include <config.h>
#define __CONFIG_H__
#define _XOPEN_SOURCE
#include <time.h>