From eca309458f9521a2e3276dc11a1792d5f2e227e4 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 6 May 2005 16:37:33 +0000 Subject: [PATCH] add config.h inclusion to all *.c files git-svn-id: file:///home/lennart/svn/public/avahi/trunk@55 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- configure.ac | 19 +++++++++++++++++++ libavahi-core/address.c | 25 +++++++++++++++++++++++++ libavahi-core/announce.c | 4 ++++ libavahi-core/avahi-test.c | 4 ++++ libavahi-core/cache.c | 4 ++++ libavahi-core/dns-test.c | 4 ++++ libavahi-core/dns.c | 4 ++++ libavahi-core/domain-test.c | 4 ++++ libavahi-core/iface.c | 4 ++++ libavahi-core/netlink.c | 4 ++++ libavahi-core/prioq-test.c | 4 ++++ libavahi-core/prioq.c | 4 ++++ libavahi-core/psched.c | 4 ++++ libavahi-core/rr.c | 4 ++++ libavahi-core/server.c | 4 ++++ libavahi-core/socket.c | 4 ++++ libavahi-core/strlst-test.c | 4 ++++ libavahi-core/strlst.c | 4 ++++ libavahi-core/subscribe.c | 4 ++++ libavahi-core/timeeventq.c | 4 ++++ libavahi-core/util.c | 4 ++++ 21 files changed, 120 insertions(+) diff --git a/configure.ac b/configure.ac index ca0f216..40373df 100644 --- a/configure.ac +++ b/configure.ac @@ -35,10 +35,29 @@ fi # Checks for programs. AC_PROG_CC +AC_PROG_CPP +AC_PROG_INSTALL +AC_PROG_LN_S +AC_PROG_MAKE_SET # libtool stuff AC_PROG_LIBTOOL +# Checks for header files. +AC_HEADER_STDC +AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h limits.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h unistd.h]) + +# Checks for typedefs, structures, and compiler characteristics. +AC_C_CONST +AC_TYPE_SIZE_T +AC_HEADER_TIME + +# Checks for library functions. +AC_FUNC_MEMCMP +AC_FUNC_SELECT_ARGTYPES +AC_CHECK_FUNCS([gethostname memset select socket strchr strcspn strerror uname]) + +# Check for GLIB 2.0 PKG_CHECK_MODULES(GLIB20, [ glib-2.0 >= 2.4.0 ]) AC_SUBST(GLIB20_CFLAGS) AC_SUBST(GLIB20_LIBS) diff --git a/libavahi-core/address.c b/libavahi-core/address.c index e5f8866..34f8581 100644 --- a/libavahi-core/address.c +++ b/libavahi-core/address.c @@ -1,3 +1,28 @@ +/* $Id$ */ + +/*** + This file is part of avahi. + + avahi is free software; you can redistribute it and/or modify it + under the terms of the GNU Lesser General Public License as + published by the Free Software Foundation; either version 2.1 of the + License, or (at your option) any later version. + + avahi is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General + Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with avahi; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + USA. +***/ + +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include #include diff --git a/libavahi-core/announce.c b/libavahi-core/announce.c index 3673ca2..dbad6c7 100644 --- a/libavahi-core/announce.c +++ b/libavahi-core/announce.c @@ -19,6 +19,10 @@ USA. ***/ +#ifdef HAVE_CONFIG_H +#include +#endif + #include "announce.h" #include "util.h" diff --git a/libavahi-core/avahi-test.c b/libavahi-core/avahi-test.c index 260c6aa..1de97a0 100644 --- a/libavahi-core/avahi-test.c +++ b/libavahi-core/avahi-test.c @@ -19,6 +19,10 @@ USA. ***/ +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include #include diff --git a/libavahi-core/cache.c b/libavahi-core/cache.c index 28d0d88..0307b8e 100644 --- a/libavahi-core/cache.c +++ b/libavahi-core/cache.c @@ -19,6 +19,10 @@ USA. ***/ +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include "util.h" diff --git a/libavahi-core/dns-test.c b/libavahi-core/dns-test.c index 0d4500a..e0680c2 100644 --- a/libavahi-core/dns-test.c +++ b/libavahi-core/dns-test.c @@ -19,6 +19,10 @@ USA. ***/ +#ifdef HAVE_CONFIG_H +#include +#endif + #include "dns.h" #include "util.h" diff --git a/libavahi-core/dns.c b/libavahi-core/dns.c index 99c6f73..cc1463a 100644 --- a/libavahi-core/dns.c +++ b/libavahi-core/dns.c @@ -19,6 +19,10 @@ USA. ***/ +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include diff --git a/libavahi-core/domain-test.c b/libavahi-core/domain-test.c index 9a4a85a..7f6bd7b 100644 --- a/libavahi-core/domain-test.c +++ b/libavahi-core/domain-test.c @@ -19,6 +19,10 @@ USA. ***/ +#ifdef HAVE_CONFIG_H +#include +#endif + #include "util.h" int main(int argc, char *argv[]) { diff --git a/libavahi-core/iface.c b/libavahi-core/iface.c index 2095e42..13ffcef 100644 --- a/libavahi-core/iface.c +++ b/libavahi-core/iface.c @@ -19,6 +19,10 @@ USA. ***/ +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include #include diff --git a/libavahi-core/netlink.c b/libavahi-core/netlink.c index bd81829..92ed436 100644 --- a/libavahi-core/netlink.c +++ b/libavahi-core/netlink.c @@ -19,6 +19,10 @@ USA. ***/ +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include #include diff --git a/libavahi-core/prioq-test.c b/libavahi-core/prioq-test.c index 160458d..28c734b 100644 --- a/libavahi-core/prioq-test.c +++ b/libavahi-core/prioq-test.c @@ -19,6 +19,10 @@ USA. ***/ +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include #include diff --git a/libavahi-core/prioq.c b/libavahi-core/prioq.c index ad5948e..7e57ae5 100644 --- a/libavahi-core/prioq.c +++ b/libavahi-core/prioq.c @@ -19,6 +19,10 @@ USA. ***/ +#ifdef HAVE_CONFIG_H +#include +#endif + #include "prioq.h" AvahiPrioQueue* avahi_prio_queue_new(gint (*compare) (gconstpointer a, gconstpointer b)) { diff --git a/libavahi-core/psched.c b/libavahi-core/psched.c index 03b065b..249e279 100644 --- a/libavahi-core/psched.c +++ b/libavahi-core/psched.c @@ -19,6 +19,10 @@ USA. ***/ +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include "util.h" diff --git a/libavahi-core/rr.c b/libavahi-core/rr.c index ca339b2..cbc39a5 100644 --- a/libavahi-core/rr.c +++ b/libavahi-core/rr.c @@ -19,6 +19,10 @@ USA. ***/ +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include #include diff --git a/libavahi-core/server.c b/libavahi-core/server.c index bc9b9ca..033622d 100644 --- a/libavahi-core/server.c +++ b/libavahi-core/server.c @@ -19,6 +19,10 @@ USA. ***/ +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include #include diff --git a/libavahi-core/socket.c b/libavahi-core/socket.c index 59357ab..e59c78a 100644 --- a/libavahi-core/socket.c +++ b/libavahi-core/socket.c @@ -19,6 +19,10 @@ USA. ***/ +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include #include diff --git a/libavahi-core/strlst-test.c b/libavahi-core/strlst-test.c index 6a9bbf6..ebbf194 100644 --- a/libavahi-core/strlst-test.c +++ b/libavahi-core/strlst-test.c @@ -19,6 +19,10 @@ USA. ***/ +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include diff --git a/libavahi-core/strlst.c b/libavahi-core/strlst.c index 94ff4db..ef9fa3e 100644 --- a/libavahi-core/strlst.c +++ b/libavahi-core/strlst.c @@ -19,6 +19,10 @@ USA. ***/ +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include diff --git a/libavahi-core/subscribe.c b/libavahi-core/subscribe.c index df8ee05..00d3385 100644 --- a/libavahi-core/subscribe.c +++ b/libavahi-core/subscribe.c @@ -19,6 +19,10 @@ USA. ***/ +#ifdef HAVE_CONFIG_H +#include +#endif + #include "subscribe.h" #include "util.h" diff --git a/libavahi-core/timeeventq.c b/libavahi-core/timeeventq.c index 8ac1108..efce7b7 100644 --- a/libavahi-core/timeeventq.c +++ b/libavahi-core/timeeventq.c @@ -19,6 +19,10 @@ USA. ***/ +#ifdef HAVE_CONFIG_H +#include +#endif + #include "timeeventq.h" #include "util.h" diff --git a/libavahi-core/util.c b/libavahi-core/util.c index 77afb78..fa97eec 100644 --- a/libavahi-core/util.c +++ b/libavahi-core/util.c @@ -19,6 +19,10 @@ USA. ***/ +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include #include -- 2.39.2