Changeset 222 for branches/samba-3.3.x/source/lib/interfaces.c
- Timestamp:
- May 24, 2009, 7:45:16 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/lib/interfaces.c
r206 r222 19 19 */ 20 20 21 22 /* working out the interfaces for a OS is an incredibly non-portable 23 thing. We have several possible implementations below, and autoconf 24 tries each of them to see what works 25 26 Note that this file does _not_ include includes.h. That is so this code 27 can be called directly from the autoconf tests. That also means 28 this code cannot use any of the normal Samba debug stuff or defines. 29 This is standalone code. 30 31 */ 32 33 #ifndef AUTOCONF_TEST 34 #include "config.h" 35 #endif 36 37 #include <unistd.h> 38 #include <stdio.h> 39 #include <sys/types.h> 40 #include <netdb.h> 41 #include <sys/ioctl.h> 42 #include <netdb.h> 43 #include <sys/ioctl.h> 44 #include <sys/time.h> 45 #include <sys/socket.h> 46 #include <netinet/in.h> 47 #include <arpa/inet.h> 48 49 #ifdef HAVE_IFADDRS_H 50 #include <ifaddrs.h> 51 #endif 52 53 #ifdef HAVE_SYS_TIME_H 54 #include <sys/time.h> 55 #endif 56 57 #ifndef SIOCGIFCONF 58 #ifdef HAVE_SYS_SOCKIO_H 59 #include <sys/sockio.h> 60 #endif 61 #endif 62 63 #ifdef HAVE_STDLIB_H 64 #include <stdlib.h> 65 #endif 66 67 #ifdef HAVE_STRING_H 68 #include <string.h> 69 #endif 70 71 #ifdef HAVE_STRINGS_H 72 #include <strings.h> 73 #endif 74 75 #ifdef __COMPAR_FN_T 76 #define QSORT_CAST (__compar_fn_t) 77 #endif 78 79 #ifndef QSORT_CAST 80 #define QSORT_CAST (int (*)(const void *, const void *)) 81 #endif 82 83 #ifdef HAVE_NET_IF_H 84 #include <net/if.h> 85 #endif 86 87 #define SOCKET_WRAPPER_NOT_REPLACE 88 #include "interfaces.h" 89 #include "lib/replace/replace.h" 90 91 /**************************************************************************** 92 Utility functions. 93 ****************************************************************************/ 21 #include "includes.h" 94 22 95 23 /****************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.