build: do the right thing with config.h (bgo #644664)
1) it shouldn't be included in headers 2) it should be the first thing included in source files 3) it's needed for getting translation right
This commit is contained in:

committed by
Dan Williams

parent
79bc2e3b34
commit
6d0d302916
@@ -17,6 +17,8 @@
|
||||
* (C) Copyright 2010 - 2011 Red Hat, Inc.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <glib.h>
|
||||
#include <glib/gi18n.h>
|
||||
#include <dbus/dbus.h>
|
||||
|
@@ -17,6 +17,8 @@
|
||||
* (C) Copyright 2010 - 2011 Red Hat, Inc.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
@@ -17,6 +17,8 @@
|
||||
* (C) Copyright 2010 - 2011 Red Hat, Inc.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
@@ -17,6 +17,8 @@
|
||||
* (C) Copyright 2010 Red Hat, Inc.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <glib.h>
|
||||
#include <glib/gi18n.h>
|
||||
#include <libnm-util/nm-utils.h>
|
||||
|
@@ -21,6 +21,8 @@
|
||||
* (C) Copyright 2007 - 2011 Red Hat, Inc.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <glib.h>
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
|
@@ -21,6 +21,7 @@
|
||||
* (C) Copyright 2007 - 2009 Red Hat, Inc.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include <glib.h>
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
|
@@ -24,6 +24,7 @@
|
||||
* (C) Copyright 2005 - 2010 Red Hat, Inc.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
@@ -20,7 +20,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#include "config.h"
|
||||
#include <glib.h>
|
||||
#include <glib/gi18n.h>
|
||||
#include <dbus/dbus.h>
|
||||
|
@@ -24,7 +24,6 @@
|
||||
#ifndef NM_DNS_MANAGER_H
|
||||
#define NM_DNS_MANAGER_H
|
||||
|
||||
#include "config.h"
|
||||
#include <glib-object.h>
|
||||
#include <dbus/dbus.h>
|
||||
#include "nm-ip4-config.h"
|
||||
|
@@ -19,7 +19,8 @@
|
||||
* Copyright (C) 2006 - 2008 Novell, Inc.
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#include "config.h"
|
||||
|
||||
#include <dlfcn.h>
|
||||
#include <syslog.h>
|
||||
#include <execinfo.h>
|
||||
|
@@ -19,6 +19,8 @@
|
||||
* Copyright (C) 2009 Novell, Inc.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
|
@@ -19,6 +19,8 @@
|
||||
* Copyright (C) 2009 Novell, Inc.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
|
@@ -19,6 +19,8 @@
|
||||
* Copyright (C) 2007 - 2008 Novell, Inc.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/wait.h>
|
||||
|
@@ -22,7 +22,6 @@
|
||||
#ifndef __NM_DBUS_MANAGER_H__
|
||||
#define __NM_DBUS_MANAGER_H__
|
||||
|
||||
#include "config.h"
|
||||
#include <glib-object.h>
|
||||
#include <dbus/dbus.h>
|
||||
#include <dbus/dbus-glib.h>
|
||||
|
@@ -18,6 +18,8 @@
|
||||
* Copyright (C) 2009 - 2011 Red Hat, Inc.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <net/ethernet.h>
|
||||
|
@@ -19,6 +19,7 @@
|
||||
* Copyright (C) 2006 - 2008 Novell, Inc.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include <glib.h>
|
||||
#include <glib/gi18n.h>
|
||||
#include <netinet/in.h>
|
||||
|
@@ -24,6 +24,7 @@
|
||||
* (C) Copyright 2009 One Laptop per Child
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include <glib.h>
|
||||
#include <glib/gi18n.h>
|
||||
#include <dbus/dbus.h>
|
||||
|
@@ -19,6 +19,8 @@
|
||||
* (C) Copyright 2009 - 2011 Red Hat, Inc.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <netinet/ether.h>
|
||||
|
||||
#include <glib/gi18n.h>
|
||||
|
@@ -22,7 +22,6 @@
|
||||
#ifndef NM_POLKIT_HELPERS_H
|
||||
#define NM_POLKIT_HELPERS_H
|
||||
|
||||
#include <config.h>
|
||||
#include <polkit/polkit.h>
|
||||
|
||||
/* Fix for polkit 0.97 and later */
|
||||
|
@@ -19,6 +19,8 @@
|
||||
* (C) Copyright 2008 - 2011 Red Hat, Inc.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include <NetworkManager.h>
|
||||
|
@@ -23,6 +23,8 @@
|
||||
* (C) Copyright 2008 Novell, Inc.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <gmodule.h>
|
||||
|
@@ -19,6 +19,8 @@
|
||||
* Copyright (C) 1999-2010 Gentoo Foundation, Inc.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <stdlib.h>
|
||||
|
@@ -20,7 +20,7 @@
|
||||
* (C) Copyright 2004 Tom Parker
|
||||
*/
|
||||
|
||||
|
||||
#include "config.h"
|
||||
#include "interface_parser.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
@@ -24,8 +24,6 @@
|
||||
#ifndef _INTERFACE_PARSER_H
|
||||
#define _INTERFACE_PARSER_H
|
||||
|
||||
#include "config.h"
|
||||
|
||||
typedef struct _if_data
|
||||
{
|
||||
char *key;
|
||||
|
Reference in New Issue
Block a user