conditionally include config.h only if it is present

This commit is contained in:
John Blair 2006-03-28 16:56:56 +00:00
parent 133cf86058
commit 8fd02275a0
7 changed files with 21 additions and 8 deletions

View File

@ -49,7 +49,9 @@
#endif
#ifdef HAVE_PATHS_H
# include <paths.h> /* For _PATH_TTY */
# include <paths.h>
#else
# define _PATH_VARRUN "/var/run/"
#endif
#include <ipmitool/helper.h>

View File

@ -42,7 +42,9 @@
#include <signal.h>
#include <unistd.h>
#include <config.h>
#if defined(HAVE_CONFIG_H)
# include <config.h>
#endif
#if defined(HAVE_TERMIOS_H)
# include <termios.h>

View File

@ -49,7 +49,9 @@
#include <sys/time.h>
#include <sys/ioctl.h>
#include <config.h>
#if defined(HAVE_CONFIG_H)
# include <config.h>
#endif
#if defined(HAVE_TERMIOS_H)
# include <termios.h>

View File

@ -42,7 +42,9 @@
#include <sys/stat.h>
#include <signal.h>
#include <config.h>
#if defined(HAVE_CONFIG_H)
# include <config.h>
#endif
#ifdef HAVE_PATHS_H
# include <paths.h>

View File

@ -33,8 +33,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <config.h>
#if defined(HAVE_CONFIG_H)
# include <config.h>
#endif
#include <ipmitool/ipmi_intf.h>
#include <ipmitool/ipmi.h>
#include <ipmitool/ipmi_sdr.h>

View File

@ -32,7 +32,9 @@
#include <assert.h>
#include <string.h>
#include <config.h>
#if defined(HAVE_CONFIG_H)
# include <config.h>
#endif
#include <ipmitool/bswap.h>
#include <ipmitool/log.h>
#include "lanplus.h"

View File

@ -45,7 +45,9 @@
#include <ipmitool/helper.h>
#include <ipmitool/log.h>
#include <config.h>
#if defined(HAVE_CONFIG_H)
# include <config.h>
#endif
#if defined(HAVE_OPENIPMI_H)
# include <linux/compiler.h>