]> git.meshlink.io Git - catta/commitdiff
add config.h inclusion to all *.c files
authorLennart Poettering <lennart@poettering.net>
Fri, 6 May 2005 16:37:33 +0000 (16:37 +0000)
committerLennart Poettering <lennart@poettering.net>
Fri, 6 May 2005 16:37:33 +0000 (16:37 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@55 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

21 files changed:
configure.ac
libavahi-core/address.c
libavahi-core/announce.c
libavahi-core/avahi-test.c
libavahi-core/cache.c
libavahi-core/dns-test.c
libavahi-core/dns.c
libavahi-core/domain-test.c
libavahi-core/iface.c
libavahi-core/netlink.c
libavahi-core/prioq-test.c
libavahi-core/prioq.c
libavahi-core/psched.c
libavahi-core/rr.c
libavahi-core/server.c
libavahi-core/socket.c
libavahi-core/strlst-test.c
libavahi-core/strlst.c
libavahi-core/subscribe.c
libavahi-core/timeeventq.c
libavahi-core/util.c

index ca0f2166cd512fe17a14b1e4b42209ed4be2fc82..40373df572c8f00a6fec8958311e572ebb798f4d 100644 (file)
@@ -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)
index e5f8866822f250606055074c3b3c40467cef2d5b..34f85812584b88e2bdc700a1eda0ca2299fb0f88 100644 (file)
@@ -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 <config.h>
+#endif
+
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <arpa/inet.h>
index 3673ca2caf9d5e8bb93984971ee6c6e3bd866a34..dbad6c71f52174f2ef73d566c2bd349758a9105b 100644 (file)
   USA.
 ***/
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include "announce.h"
 #include "util.h"
 
index 260c6aa5a2d16fb968121be87c4d78500421bb9a..1de97a012c03fc648992c2b09429f4bda5d4f87b 100644 (file)
   USA.
 ***/
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
index 28d0d885ecf8499871216435df2406685683010f..0307b8e58cf18f877af45d2440f046f2aba3d293 100644 (file)
   USA.
 ***/
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <string.h>
 
 #include "util.h"
index 0d4500a0fb19358d40909a5e4f4f0311b8b69ca0..e0680c2ba3d85ffb9ac9422a729f938b3f37f6ac 100644 (file)
   USA.
 ***/
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include "dns.h"
 #include "util.h"
 
index 99c6f7367df00798c74a33d46f20652483c0f018..cc1463a729b15ea66702bedd2e1134ccfeb4ba9e 100644 (file)
   USA.
 ***/
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <netinet/in.h>
 
 #include <stdlib.h>
index 9a4a85a9011cd830f8a6dc787a5c87e47d41d473..7f6bd7b95c7582c492d1d9a2aae5cd87d31382a6 100644 (file)
   USA.
 ***/
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include "util.h"
 
 int main(int argc, char *argv[]) {
index 2095e429ae8141ea4b6ce8b9942b63dcf112ba41..13ffcef973d284c399a6cc59e63dca9b4111a3ec 100644 (file)
   USA.
 ***/
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <string.h>
 #include <sys/socket.h>
 #include <asm/types.h>
index bd818297fb990fb0abb3b49246fb027bfa73aef6..92ed4367e40943c8f6a0d6d4d7ac926fdf4a5443 100644 (file)
   USA.
 ***/
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <unistd.h>
 #include <errno.h>
 #include <string.h>
index 160458db648666b27e3d1d0b50a5ec702f50356f..28c734b6b2f7f9ce0555c52030fa168d92d14b2e 100644 (file)
   USA.
 ***/
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <time.h>
 #include <stdlib.h>
 #include <stdio.h>
index ad5948e3166e97a963dd8a9be5f2c935d5865ac5..7e57ae51e9fe0bd5b77b5267311fb967e421e068 100644 (file)
   USA.
 ***/
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include "prioq.h"
 
 AvahiPrioQueue* avahi_prio_queue_new(gint (*compare) (gconstpointer a, gconstpointer b)) {
index 03b065b80ae2dba3ba3b102e5f0ce4755197d38e..249e279f30795173bb4e25daaa5c88d6b562a8e1 100644 (file)
   USA.
 ***/
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <string.h>
 
 #include "util.h"
index ca339b2554a259a00b789758a8ce6339b3206636..cbc39a50410533365cb7e18b8989bbe1804dbeb1 100644 (file)
   USA.
 ***/
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <string.h>
 #include <stdio.h>
 #include <sys/types.h>
index bc9b9ca947e6c6557c3a49ae21ff524ce3c34548..033622d3cdc771237e2be39ca077a3d90d837c7f 100644 (file)
   USA.
 ***/
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <sys/socket.h>
 #include <arpa/inet.h>
 #include <string.h>
index 59357abed5886f4450576e72e1658b0e320521b9..e59c78a6fd4167ef17ff5319a5d323ccfe461161 100644 (file)
   USA.
 ***/
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <inttypes.h>
 #include <errno.h>
 #include <string.h>
index 6a9bbf62e30a595bdb45de81301288ef14d9743c..ebbf194bc5431ee175f252535aa0155f6891864c 100644 (file)
   USA.
 ***/
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <glib.h>
 #include <stdio.h>
 
index 94ff4dbede76a938f421ec62193086b71c46b2c4..ef9fa3ee603bc8fe7106e2acdb3b7e622e88c708 100644 (file)
   USA.
 ***/
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <string.h>
 #include <stdarg.h>
 
index df8ee0517912ca540c1a92a0bc4ff940cdbb1e09..00d3385fd2b8e75246170765f254b1da1c24eabc 100644 (file)
   USA.
 ***/
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include "subscribe.h"
 #include "util.h"
 
index 8ac1108afec8f4c27ef605900072ac32c1bed50b..efce7b7d1e2769be055dd1554fc9d425859b7467 100644 (file)
   USA.
 ***/
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include "timeeventq.h"
 #include "util.h"
 
index 77afb78d9f7fbba90f154284b8b34b1404c5e1d7..fa97eecedbcc3eb6cb33482c09a0eb6becb98955 100644 (file)
   USA.
 ***/
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <string.h>
 #include <unistd.h>
 #include <fcntl.h>