00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef _WINBIND_NSS_CONFIG_H
00025 #define _WINBIND_NSS_CONFIG_H
00026
00027
00028 #ifdef SIZEOF_LONG
00029 #undef SIZEOF_LONG
00030 #endif
00031
00032
00033
00034
00035 #ifndef NO_CONFIG_H
00036 #include "lib/replace/replace.h"
00037 #endif
00038
00039 #include "system/filesys.h"
00040 #include "system/network.h"
00041 #include "system/passwd.h"
00042
00043 #include "nsswitch/winbind_nss.h"
00044
00045
00046
00047
00048 #ifndef _PSTRING
00049 #define _PSTRING
00050 #define PSTRING_LEN 1024
00051 #define FSTRING_LEN 256
00052 typedef char pstring[PSTRING_LEN];
00053 typedef char fstring[FSTRING_LEN];
00054 #endif
00055
00056 #ifndef _UPPER_BOOL
00057 #define _UPPER_BOOL
00058 #define False (0)
00059 #define True (1)
00060 #define Auto (2)
00061 typedef int BOOL;
00062 #endif
00063
00064 #if !defined(uint32)
00065 #if (SIZEOF_INT == 4)
00066 #define uint32 unsigned int
00067 #elif (SIZEOF_LONG == 4)
00068 #define uint32 unsigned long
00069 #elif (SIZEOF_SHORT == 4)
00070 #define uint32 unsigned short
00071 #endif
00072 #endif
00073
00074 #if !defined(uint16)
00075 #if (SIZEOF_SHORT == 4)
00076 #define uint16 __ERROR___CANNOT_DETERMINE_TYPE_FOR_INT16;
00077 #else
00078 #define uint16 unsigned short
00079 #endif
00080 #endif
00081
00082 #ifndef uint8
00083 #define uint8 unsigned char
00084 #endif
00085
00086
00087
00088
00089
00090 #if !defined(uint64)
00091 #if (SIZEOF_LONG == 8)
00092 #define uint64 unsigned long
00093 #elif (SIZEOF_LONG_LONG == 8)
00094 #define uint64 unsigned long long
00095 #endif
00096 #endif
00097
00098 #if !defined(int64)
00099 #if (SIZEOF_LONG == 8)
00100 #define int64 long
00101 #elif (SIZEOF_LONG_LONG == 8)
00102 #define int64 long long
00103 #endif
00104 #endif
00105
00106
00107
00108 #ifndef S_IFSOCK
00109 #define S_IFSOCK S_IFIFO
00110 #endif
00111
00112 #ifndef S_ISSOCK
00113 #define S_ISSOCK(mode) ((mode & S_IFSOCK) == S_IFSOCK)
00114 #endif
00115
00116 #ifndef HAVE_SOCKLEN_T_TYPE
00117 #define HAVE_SOCKLEN_T_TYPE
00118 typedef int socklen_t;
00119 #endif
00120
00121 #endif