lib: iov_buf does not need talloc.h anymore
[Samba.git] / nsswitch / winbind_nss_config.h
blobfb3299d58a48b66f7eba75ad64a6928e2bf8ee94
1 /*
2 Unix SMB/CIFS implementation.
4 Winbind daemon for ntdom nss module
6 Copyright (C) Tim Potter 2000
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 3 of the License, or (at your option) any later version.
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Library General Public License for more details.
18 You should have received a copy of the GNU Lesser General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
22 #ifndef _WINBIND_NSS_CONFIG_H
23 #define _WINBIND_NSS_CONFIG_H
25 /* shutup the compiler warnings due to krb5.h on 64-bit sles9 */
26 #ifdef SIZEOF_LONG
27 #undef SIZEOF_LONG
28 #endif
30 /* Include header files from data in config.h file */
32 #ifndef NO_CONFIG_H
33 #include "../replace/replace.h"
34 #endif
36 #include "system/filesys.h"
37 #include "system/network.h"
38 #include "system/passwd.h"
40 #include "nsswitch/winbind_nss.h"
42 /* I'm trying really hard not to include anything from smb.h with the
43 result of some silly looking redeclaration of structures. */
45 #ifndef FSTRING_LEN
46 #define FSTRING_LEN 256
47 typedef char fstring[FSTRING_LEN];
48 #ifndef fstrcpy
49 #define fstrcpy(d,s) \
50 do { \
51 const char *_fstrcpy_src = (const char *)(s); \
52 strlcpy((d),_fstrcpy_src ? _fstrcpy_src : "",sizeof(fstring)); \
53 } while (0)
54 #endif
55 #endif
57 /* Some systems (SCO) treat UNIX domain sockets as FIFOs */
59 #ifndef S_IFSOCK
60 #define S_IFSOCK S_IFIFO
61 #endif
63 #ifndef S_ISSOCK
64 #define S_ISSOCK(mode) ((mode & S_IFSOCK) == S_IFSOCK)
65 #endif
67 #endif