2 Unix SMB/Netbios implementation.
5 Winbind daemon for ntdom nss module
7 Copyright (C) Tim Potter 2000
9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Library General Public
11 License as published by the Free Software Foundation; either
12 version 2 of the License, or (at your option) any later version.
14 This library is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Library General Public License for more details.
19 You should have received a copy of the GNU Library General Public
20 License along with this library; if not, write to the
21 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22 Boston, MA 02111-1307, USA.
25 #ifndef _NTDOM_CONFIG_H
26 #define _NTDOM_CONFIG_H
28 /* Include header files from data in config.h file */
42 #ifdef HAVE_SYS_SOCKET_H
43 #include <sys/socket.h>
50 #ifdef HAVE_SYS_TIME_H
58 #include <sys/types.h>
64 /* I'm trying really hard not to include anything from smb.h with the
65 result of some silly looking redeclaration of structures. */
69 #define PSTRING_LEN 1024
70 #define FSTRING_LEN 128
71 typedef char pstring[PSTRING_LEN];
72 typedef char fstring[FSTRING_LEN];
76 #define _BOOL /* So we don't typedef BOOL again in vfs.h */
85 #define uint32 unsigned int
86 #elif (SIZEOF_LONG == 4)
87 #define uint32 unsigned long
88 #elif (SIZEOF_SHORT == 4)
89 #define uint32 unsigned short
94 #if (SIZEOF_SHORT == 4)
95 #define uint16 __ERROR___CANNOT_DETERMINE_TYPE_FOR_INT16;
96 #else /* SIZEOF_SHORT != 4 */
97 #define uint16 unsigned short
98 #endif /* SIZEOF_SHORT != 4 */
102 #define uint8 unsigned char
105 /* zero a structure */
106 #define ZERO_STRUCT(x) memset((char *)&(x), 0, sizeof(x))
108 /* zero a structure given a pointer to the structure */
109 #define ZERO_STRUCTP(x) { if ((x) != NULL) memset((char *)(x), 0, sizeof(*(x))); }