Skip to content

Commit

Permalink
use "config.h" for defines
Browse files Browse the repository at this point in the history
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
  • Loading branch information
jpirko committed Jun 4, 2013
1 parent b9692cb commit 557c18c
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 2 deletions.
1 change: 1 addition & 0 deletions configure.ac
Expand Up @@ -4,6 +4,7 @@
AC_INIT([libteam], [1.2], [jpirko@redhat.com])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
#m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES(yes)], [])
AM_PROG_AR
Expand Down
2 changes: 2 additions & 0 deletions libteam/team_private.h
Expand Up @@ -26,6 +26,8 @@
#include <team.h>
#include <private/list.h>

#include "config.h"

#define TEAM_EXPORT __attribute__ ((visibility("default")))

/**
Expand Down
2 changes: 2 additions & 0 deletions libteamdctl/cli_dbus.c
Expand Up @@ -17,6 +17,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include "config.h"

#ifdef ENABLE_DBUS

#include <stdio.h>
Expand Down
2 changes: 2 additions & 0 deletions libteamdctl/libteamdctl.c
Expand Up @@ -26,6 +26,8 @@
#include <errno.h>
#include <private/misc.h>
#include <teamdctl.h>

#include "config.h"
#include "teamdctl_private.h"

/**
Expand Down
2 changes: 2 additions & 0 deletions libteamdctl/teamdctl_private.h
Expand Up @@ -24,6 +24,8 @@
#include <syslog.h>
#include <teamdctl.h>

#include "config.h"

#define TEAMDCTL_EXPORT __attribute__ ((visibility("default")))

/**
Expand Down
1 change: 1 addition & 0 deletions teamd/teamd.c
Expand Up @@ -42,6 +42,7 @@
#include <private/misc.h>
#include <team.h>

#include "config.h"
#include "teamd.h"
#include "teamd_workq.h"
#include "teamd_config.h"
Expand Down
7 changes: 5 additions & 2 deletions teamd/teamd.h
Expand Up @@ -33,11 +33,14 @@
#include <jansson.h>
#include <linux/filter.h>
#include <linux/if_packet.h>
#include <team.h>
#include <private/list.h>

#include "config.h"

#ifdef ENABLE_DBUS
#include <dbus/dbus.h>
#endif
#include <team.h>
#include <private/list.h>

#define teamd_log_err(args...) daemon_log(LOG_ERR, ##args)
#define teamd_log_warn(args...) daemon_log(LOG_WARNING, ##args)
Expand Down
2 changes: 2 additions & 0 deletions teamd/teamd_dbus.c
Expand Up @@ -17,6 +17,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include "config.h"

#ifdef ENABLE_DBUS

#include <stdbool.h>
Expand Down
2 changes: 2 additions & 0 deletions teamd/teamd_dbus.h
Expand Up @@ -17,6 +17,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include "config.h"

#ifndef _TEAMD_DBUS_H_
#define _TEAMD_DBUS_H_

Expand Down
1 change: 1 addition & 0 deletions teamd/teamd_state.c
Expand Up @@ -27,6 +27,7 @@
#include <team.h>
#include <private/misc.h>

#include "config.h"
#include "teamd.h"
#include "teamd_state.h"
#include "teamd_json.h"
Expand Down
2 changes: 2 additions & 0 deletions utils/teamdctl.c
Expand Up @@ -27,6 +27,8 @@
#include <private/misc.h>
#include <teamdctl.h>

#include "config.h"

enum verbosity_level {
VERB1,
VERB2,
Expand Down

0 comments on commit 557c18c

Please sign in to comment.