From d161f8e0b5e1729d644bf44367996bef5227e7ef Mon Sep 17 00:00:00 2001 From: Marius Tomaschewski Date: Thu, 8 Sep 2011 19:06:34 +0200 Subject: [PATCH] Include config.h to have _GNU_SOURCE defined Signed-off-by: Marius Tomaschewski --- src/backend-suse.c | 3 +++ src/bonding.c | 3 +++ src/bonding.h | 3 +++ src/bridge.c | 9 +++------ src/bridge.h | 3 +++ src/cmd_pipe.c | 3 +++ src/cmd_pipe.h | 3 +++ src/futils.c | 3 +++ src/futils.h | 3 +++ src/handle.c | 3 +++ src/handle.h | 3 +++ src/logging.c | 3 ++- src/logging.h | 3 +++ src/nctest.c | 3 +++ src/netcf-xml.c | 3 +++ src/netcf.c | 3 +++ src/ntypes.h | 3 +++ src/nutils.c | 4 +++- src/nutils.h | 3 +++ src/sutils.c | 3 +++ src/sutils.h | 3 +++ src/syntax.c | 3 +++ src/syntax.h | 3 +++ src/sysconfig.c | 3 +++ src/sysconfig.h | 3 +++ src/sysctl.c | 3 +++ src/sysctl.h | 3 +++ src/sysfs.c | 3 +++ src/sysfs.h | 3 +++ src/udev_utils.c | 3 +++ src/udev_utils.h | 3 +++ src/vlan.c | 3 +++ src/vlan.h | 3 +++ src/xml-reader.c | 3 +++ src/xml-writer.c | 3 +++ src/xml.c | 3 +++ src/xml.h | 3 +++ 37 files changed, 110 insertions(+), 8 deletions(-) diff --git a/src/backend-suse.c b/src/backend-suse.c index bd98fcb..b6a3644 100644 --- a/src/backend-suse.c +++ b/src/backend-suse.c @@ -27,6 +27,9 @@ * wicked under the LGPL-2.1+ in libnetcontrol. * You can find the wicked project at http://gitorious.org/wicked/. */ +#if defined(HAVE_CONFIG_H) +#include +#endif #include #include #include diff --git a/src/bonding.c b/src/bonding.c index 39c6b39..671edb6 100644 --- a/src/bonding.c +++ b/src/bonding.c @@ -28,6 +28,9 @@ * You can find the wicked project at http://gitorious.org/wicked/. * */ +#if defined(HAVE_CONFIG_H) +#include +#endif #include #include #include diff --git a/src/bonding.h b/src/bonding.h index d6fd3eb..7421a5b 100644 --- a/src/bonding.h +++ b/src/bonding.h @@ -30,6 +30,9 @@ */ #ifndef __NETCONTROL_BONDING_H #define __NETCONTROL_BONDING_H +#if defined(HAVE_CONFIG_H) +#include +#endif #include #include diff --git a/src/bridge.c b/src/bridge.c index f915f9e..d08a2f0 100644 --- a/src/bridge.c +++ b/src/bridge.c @@ -28,16 +28,13 @@ * You can find the wicked project at http://gitorious.org/wicked/. * */ +#if defined(HAVE_CONFIG_H) +#include +#endif #include #include #include #include - /* -#include -#include -#include -*/ - #include #include #include diff --git a/src/bridge.h b/src/bridge.h index 9882574..b155999 100644 --- a/src/bridge.h +++ b/src/bridge.h @@ -30,6 +30,9 @@ */ #ifndef __NETCONTROL_BRIDGE_H #define __NETCONTROL_BRIDGE_H +#if defined(HAVE_CONFIG_H) +#include +#endif #include #include diff --git a/src/cmd_pipe.c b/src/cmd_pipe.c index bc5cee0..9c100aa 100644 --- a/src/cmd_pipe.c +++ b/src/cmd_pipe.c @@ -27,6 +27,9 @@ * You can find the wicked project at http://gitorious.org/wicked/. * */ +#if defined(HAVE_CONFIG_H) +#include +#endif #include #include #include diff --git a/src/cmd_pipe.h b/src/cmd_pipe.h index 99fc849..e139b7a 100644 --- a/src/cmd_pipe.h +++ b/src/cmd_pipe.h @@ -29,6 +29,9 @@ */ #ifndef __NETCONTROL_CMD_PIPE_H #define __NETCONTROL_CMD_PIPE_H +#if defined(HAVE_CONFIG_H) +#include +#endif #include #include diff --git a/src/futils.c b/src/futils.c index ae642e0..a0a6b6d 100644 --- a/src/futils.c +++ b/src/futils.c @@ -27,6 +27,9 @@ * wicked under the LGPL-2.1+ in libnetcontrol. * You can find the wicked project at http://gitorious.org/wicked/. */ +#if defined(HAVE_CONFIG_H) +#include +#endif #include #include #include diff --git a/src/futils.h b/src/futils.h index 52aee94..913c640 100644 --- a/src/futils.h +++ b/src/futils.h @@ -30,6 +30,9 @@ */ #ifndef __NETCONTROL_FUTILS_H #define __NETCONTROL_FUTILS_H +#if defined(HAVE_CONFIG_H) +#include +#endif #include diff --git a/src/handle.c b/src/handle.c index 98ce983..9c98c0d 100644 --- a/src/handle.c +++ b/src/handle.c @@ -28,6 +28,9 @@ * You can find the wicked project at http://gitorious.org/wicked/. * */ +#if defined(HAVE_CONFIG_H) +#include +#endif #include #include #include diff --git a/src/handle.h b/src/handle.h index 484d54c..9447ad7 100644 --- a/src/handle.h +++ b/src/handle.h @@ -30,6 +30,9 @@ */ #ifndef __NETCONTROL_HANDLE_H #define __NETCONTROL_HANDLE_H +#if defined(HAVE_CONFIG_H) +#include +#endif #include diff --git a/src/logging.c b/src/logging.c index 837a313..bb93610 100644 --- a/src/logging.c +++ b/src/logging.c @@ -28,8 +28,9 @@ * You can find the wicked project at http://gitorious.org/wicked/. * */ +#if defined(HAVE_CONFIG_H) #include - +#endif #include #include #include diff --git a/src/logging.h b/src/logging.h index e9b3976..d00c9dc 100644 --- a/src/logging.h +++ b/src/logging.h @@ -30,6 +30,9 @@ */ #ifndef __NETCONTROL_LOGGING_H #define __NETCONTROL_LOGGING_H +#if defined(HAVE_CONFIG_H) +#include +#endif #ifdef __GNUC__ # define __fmtattr(f,a) __attribute__ ((format (printf, f, a))) diff --git a/src/nctest.c b/src/nctest.c index d906df2..816b941 100644 --- a/src/nctest.c +++ b/src/nctest.c @@ -26,6 +26,9 @@ * You can find the wicked project at http://gitorious.org/wicked/. * */ +#if defined(HAVE_CONFIG_H) +#include +#endif #include #include #include diff --git a/src/netcf-xml.c b/src/netcf-xml.c index 0dcd198..5b5738a 100644 --- a/src/netcf-xml.c +++ b/src/netcf-xml.c @@ -28,6 +28,9 @@ * You can find the wicked project at http://gitorious.org/wicked/. * */ +#if defined(HAVE_CONFIG_H) +#include +#endif #include #include #include diff --git a/src/netcf.c b/src/netcf.c index 57c16af..7ceb336 100644 --- a/src/netcf.c +++ b/src/netcf.c @@ -28,6 +28,9 @@ * You can find the wicked project at http://gitorious.org/wicked/. * */ +#if defined(HAVE_CONFIG_H) +#include +#endif #include #include #include diff --git a/src/ntypes.h b/src/ntypes.h index 8865dc7..bc5531c 100644 --- a/src/ntypes.h +++ b/src/ntypes.h @@ -30,6 +30,9 @@ */ #ifndef __NETCONTROL_NTYPES_H #define __NETCONTROL_NTYPES_H +#if defined(HAVE_CONFIG_H) +#include +#endif #include #include diff --git a/src/nutils.c b/src/nutils.c index 8956581..7dada29 100644 --- a/src/nutils.c +++ b/src/nutils.c @@ -28,7 +28,9 @@ * You can find the wicked project at http://gitorious.org/wicked/. * */ - +#if defined(HAVE_CONFIG_H) +#include +#endif #include #include #include diff --git a/src/nutils.h b/src/nutils.h index 17961af..cf84f3e 100644 --- a/src/nutils.h +++ b/src/nutils.h @@ -30,6 +30,9 @@ */ #ifndef __NETCONTROL_NUTILS_H #define __NETCONTROL_NUTILS_H +#if defined(HAVE_CONFIG_H) +#include +#endif #include #include diff --git a/src/sutils.c b/src/sutils.c index dd6188b..f3684ed 100644 --- a/src/sutils.c +++ b/src/sutils.c @@ -28,6 +28,9 @@ * You can find the wicked project at http://gitorious.org/wicked/. * */ +#if defined(HAVE_CONFIG_H) +#include +#endif #include #include #include diff --git a/src/sutils.h b/src/sutils.h index c5862d8..3f05680 100644 --- a/src/sutils.h +++ b/src/sutils.h @@ -30,6 +30,9 @@ */ #ifndef __NETCONTROL_SUTILS_H #define __NETCONTROL_SUTILS_H +#if defined(HAVE_CONFIG_H) +#include +#endif #include #include diff --git a/src/syntax.c b/src/syntax.c index 4343a8d..78ef526 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -28,6 +28,9 @@ * You can find the wicked project at http://gitorious.org/wicked/. * */ +#if defined(HAVE_CONFIG_H) +#include +#endif #include #include diff --git a/src/syntax.h b/src/syntax.h index 7ca60ac..25c69a4 100644 --- a/src/syntax.h +++ b/src/syntax.h @@ -30,6 +30,9 @@ */ #ifndef __NETCONTROL_SYNTAX_H #define __NETCONTROL_SYNTAX_H +#if defined(HAVE_CONFIG_H) +#include +#endif #include #include diff --git a/src/sysconfig.c b/src/sysconfig.c index bb90075..7faa96c 100644 --- a/src/sysconfig.c +++ b/src/sysconfig.c @@ -28,6 +28,9 @@ * You can find the wicked project at http://gitorious.org/wicked/. * */ +#if defined(HAVE_CONFIG_H) +#include +#endif #include #include #include diff --git a/src/sysconfig.h b/src/sysconfig.h index 13a1507..2902746 100644 --- a/src/sysconfig.h +++ b/src/sysconfig.h @@ -30,6 +30,9 @@ */ #ifndef __NETCONTROL_UTILS_SYSCONFIG_H #define __NETCONTROL_UTILS_SYSCONFIG_H +#if defined(HAVE_CONFIG_H) +#include +#endif #include diff --git a/src/sysctl.c b/src/sysctl.c index 5100d8b..07e54c4 100644 --- a/src/sysctl.c +++ b/src/sysctl.c @@ -26,6 +26,9 @@ * You can find the wicked project at http://gitorious.org/wicked/. * */ +#if defined(HAVE_CONFIG_H) +#include +#endif #include #include #include diff --git a/src/sysctl.h b/src/sysctl.h index 87f0de1..9746790 100644 --- a/src/sysctl.h +++ b/src/sysctl.h @@ -28,6 +28,9 @@ */ #ifndef __NETCONTROL_SYSCTL_H #define __NETCONTROL_SYSCTL_H +#if defined(HAVE_CONFIG_H) +#include +#endif #include diff --git a/src/sysfs.c b/src/sysfs.c index fe3427a..a482be7 100644 --- a/src/sysfs.c +++ b/src/sysfs.c @@ -27,6 +27,9 @@ * You can find the wicked project at http://gitorious.org/wicked/. * */ +#if defined(HAVE_CONFIG_H) +#include +#endif #include #include #include diff --git a/src/sysfs.h b/src/sysfs.h index 58d246c..c841e4c 100644 --- a/src/sysfs.h +++ b/src/sysfs.h @@ -29,6 +29,9 @@ */ #ifndef __NETCONTROL_SYSFS_H #define __NETCONTROL_SYSFS_H +#if defined(HAVE_CONFIG_H) +#include +#endif #include #include diff --git a/src/udev_utils.c b/src/udev_utils.c index 8337391..d86f25c 100644 --- a/src/udev_utils.c +++ b/src/udev_utils.c @@ -26,6 +26,9 @@ * You can find the wicked project at http://gitorious.org/wicked/. * */ +#if defined(HAVE_CONFIG_H) +#include +#endif #include #include #include diff --git a/src/udev_utils.h b/src/udev_utils.h index 86bb03a..ac70c0c 100644 --- a/src/udev_utils.h +++ b/src/udev_utils.h @@ -28,6 +28,9 @@ */ #ifndef __NETCONTROL_UDEV_UTILS_H #define __NETCONTROL_UDEV_UTILS_H +#if defined(HAVE_CONFIG_H) +#include +#endif #include diff --git a/src/vlan.c b/src/vlan.c index b4d30e7..d5e89d6 100644 --- a/src/vlan.c +++ b/src/vlan.c @@ -28,6 +28,9 @@ * You can find the wicked project at http://gitorious.org/wicked/. * */ +#if defined(HAVE_CONFIG_H) +#include +#endif #include #include #include diff --git a/src/vlan.h b/src/vlan.h index 3cd083d..1b77128 100644 --- a/src/vlan.h +++ b/src/vlan.h @@ -30,6 +30,9 @@ */ #ifndef __NETCONTROL_VLAN_H #define __NETCONTROL_VLAN_H +#if defined(HAVE_CONFIG_H) +#include +#endif #include #include diff --git a/src/xml-reader.c b/src/xml-reader.c index 328e050..403d117 100644 --- a/src/xml-reader.c +++ b/src/xml-reader.c @@ -30,6 +30,9 @@ * You can find the wicked project at http://gitorious.org/wicked/. * */ +#if defined(HAVE_CONFIG_H) +#include +#endif #include #include #include diff --git a/src/xml-writer.c b/src/xml-writer.c index d8d2312..58efbe3 100644 --- a/src/xml-writer.c +++ b/src/xml-writer.c @@ -30,6 +30,9 @@ * You can find the wicked project at http://gitorious.org/wicked/. * */ +#if defined(HAVE_CONFIG_H) +#include +#endif #include #include #include diff --git a/src/xml.c b/src/xml.c index 8a452b5..eb2846a 100644 --- a/src/xml.c +++ b/src/xml.c @@ -28,6 +28,9 @@ * You can find the wicked project at http://gitorious.org/wicked/. * */ +#if defined(HAVE_CONFIG_H) +#include +#endif #include #include #include diff --git a/src/xml.h b/src/xml.h index 46013ab..71b1460 100644 --- a/src/xml.h +++ b/src/xml.h @@ -32,6 +32,9 @@ */ #ifndef __NETCONTROL_XML_H #define __NETCONTROL_XML_H +#if defined(HAVE_CONFIG_H) +#include +#endif #include -- 1.7.3.4