From eeb49fd2211fa7ed4e96ccfd2ad07f6d65140a82 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 9 Mar 2009 12:35:21 +0100 Subject: [PATCH] s3:lib: interfaces.c isn't used in the configure tests anymore libreplace always provides the getifaddr() function. This fixes the build on sles8. metze (cherry picked from commit 1410490fe769bc79f98b4ab364685c7aed253e09) (cherry picked from commit bac96af2053996f28894458fce87e84c5c2356ff) --- source/lib/interfaces.c | 74 +------------------------------------------------ 1 file changed, 1 insertion(+), 73 deletions(-) diff --git a/source/lib/interfaces.c b/source/lib/interfaces.c index dd857ae6722..2535418d99a 100644 --- a/source/lib/interfaces.c +++ b/source/lib/interfaces.c @@ -18,79 +18,7 @@ along with this program. If not, see . */ - -/* working out the interfaces for a OS is an incredibly non-portable - thing. We have several possible implementations below, and autoconf - tries each of them to see what works - - Note that this file does _not_ include includes.h. That is so this code - can be called directly from the autoconf tests. That also means - this code cannot use any of the normal Samba debug stuff or defines. - This is standalone code. - -*/ - -#ifndef AUTOCONF_TEST -#include "config.h" -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#ifdef HAVE_IFADDRS_H -#include -#endif - -#ifdef HAVE_SYS_TIME_H -#include -#endif - -#ifndef SIOCGIFCONF -#ifdef HAVE_SYS_SOCKIO_H -#include -#endif -#endif - -#ifdef HAVE_STDLIB_H -#include -#endif - -#ifdef HAVE_STRING_H -#include -#endif - -#ifdef HAVE_STRINGS_H -#include -#endif - -#ifdef __COMPAR_FN_T -#define QSORT_CAST (__compar_fn_t) -#endif - -#ifndef QSORT_CAST -#define QSORT_CAST (int (*)(const void *, const void *)) -#endif - -#ifdef HAVE_NET_IF_H -#include -#endif - -#define SOCKET_WRAPPER_NOT_REPLACE -#include "interfaces.h" -#include "lib/replace/replace.h" - -/**************************************************************************** - Utility functions. -****************************************************************************/ +#include "includes.h" /**************************************************************************** Create a struct sockaddr_storage with the netmask bits set to 1. -- 2.11.4.GIT