librpc: Shorten dcerpc_binding_handle_call a bit
[Samba/id10ts.git] / nsswitch / winbind_nss_config.h
blobe1ad3f64635fe5951a22d42d5923df3c0938ccba
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
31 * we don't need socket wrapper
32 * nor nss wrapper here and we don't
33 * want to depend on swrap_close()
34 * so we better disable both
36 #define SOCKET_WRAPPER_NOT_REPLACE
37 #define NSS_WRAPPER_NOT_REPLACE
39 /* Include header files from data in config.h file */
41 #ifndef NO_CONFIG_H
42 #include "../replace/replace.h"
43 #endif
45 #include "system/filesys.h"
46 #include "system/network.h"
47 #include "system/passwd.h"
49 #include "nsswitch/winbind_nss.h"
51 /* I'm trying really hard not to include anything from smb.h with the
52 result of some silly looking redeclaration of structures. */
54 #ifndef FSTRING_LEN
55 #define FSTRING_LEN 256
56 typedef char fstring[FSTRING_LEN];
57 #ifndef fstrcpy
58 #define fstrcpy(d,s) \
59 do { \
60 const char *_fstrcpy_src = (const char *)(s); \
61 strlcpy((d),_fstrcpy_src ? _fstrcpy_src : "",sizeof(fstring)); \
62 } while (0)
63 #endif
64 #endif
66 /* Some systems (SCO) treat UNIX domain sockets as FIFOs */
68 #ifndef S_IFSOCK
69 #define S_IFSOCK S_IFIFO
70 #endif
72 #ifndef S_ISSOCK
73 #define S_ISSOCK(mode) ((mode & S_IFSOCK) == S_IFSOCK)
74 #endif
76 #endif