diff options
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/config.h.in | 17 | ||||
-rw-r--r-- | source3/include/includes.h | 65 |
2 files changed, 48 insertions, 34 deletions
diff --git a/source3/include/config.h.in b/source3/include/config.h.in index 124d7b89e95..98b5f111639 100644 --- a/source3/include/config.h.in +++ b/source3/include/config.h.in @@ -106,6 +106,7 @@ #undef HAVE_NETMASK_AIX #undef HAVE_CRYPT #undef HAVE_PUTPRPWNAM +#undef HAVE_SET_AUTH_PARAMETERS #undef WITH_MMAP #undef WITH_SYSLOG #undef WITH_SSL @@ -132,6 +133,10 @@ #undef HAVE_LIBREADLINE #undef HAVE_KERNEL_OPLOCKS #undef HAVE_IRIX_SPECIFIC_CAPABILITIES +#undef HAVE_INT16_FROM_RPC_RPC_H +#undef HAVE_UINT16_FROM_RPC_RPC_H +#undef HAVE_INT32_FROM_RPC_RPC_H +#undef HAVE_UINT32_FROM_RPC_RPC_H #undef KRB4_AUTH #undef SEEKDIR_RETURNS_VOID #undef HAVE_DIRENT_D_OFF @@ -649,21 +654,9 @@ /* Define if you have the <readline/readline.h> header file. */ #undef HAVE_READLINE_READLINE_H -/* Define if you have the <rpc/auth.h> header file. */ -#undef HAVE_RPC_AUTH_H - -/* Define if you have the <rpc/clnt.h> header file. */ -#undef HAVE_RPC_CLNT_H - /* Define if you have the <rpc/rpc.h> header file. */ #undef HAVE_RPC_RPC_H -/* Define if you have the <rpc/types.h> header file. */ -#undef HAVE_RPC_TYPES_H - -/* Define if you have the <rpc/xdr.h> header file. */ -#undef HAVE_RPC_XDR_H - /* Define if you have the <rpcsvc/yp_prot.h> header file. */ #undef HAVE_RPCSVC_YP_PROT_H diff --git a/source3/include/includes.h b/source3/include/includes.h index 26bf8720372..9c5fa95a589 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -294,6 +294,23 @@ #include <sys/capability.h> #endif +#if defined(HAVE_RPC_RPC_H) +#include <rpc/rpc.h> +#endif + +#if defined(HAVE_YP_GET_DEFAULT_DOMAIN) && defined(HAVE_SETNETGRENT) && defined(HAVE_ENDNETGRENT) && defined(HAVE_GETNETGRENT) +#define HAVE_NETGROUP 1 +#endif + +#if defined (HAVE_NETGROUP) +#if defined(HAVE_RPCSVC_YP_PROT_H) +#include <rpcsvc/yp_prot.h> +#endif +#if defined(HAVE_RPCSVC_YPCLNT_H) +#include <rpcsvc/ypclnt.h> +#endif +#endif /* HAVE_NETGROUP */ + #ifndef uchar #define uchar unsigned char #endif @@ -317,7 +334,7 @@ #define uint8 unsigned char #endif -#ifndef int16 +#if !defined(int16) && !defined(HAVE_INT16_FROM_RPC_RPC_H) #if (SIZEOF_SHORT == 4) #define int16 __ERROR___CANNOT_DETERMINE_TYPE_FOR_INT16; #else /* SIZEOF_SHORT != 4 */ @@ -325,11 +342,20 @@ #endif /* SIZEOF_SHORT != 4 */ #endif -#ifndef uint16 -#define uint16 unsigned int16 +/* + * Note we duplicate the size tests in the unsigned + * case as int16 may be a typedef from rpc/rpc.h + */ + +#if !defined(uint16) && !defined(HAVE_UINT16_FROM_RPC_RPC_H) +#if (SIZEOF_SHORT == 4) +#define uint16 __ERROR___CANNOT_DETERMINE_TYPE_FOR_INT16; +#else /* SIZEOF_SHORT != 4 */ +#define uint16 unsigned short +#endif /* SIZEOF_SHORT != 4 */ #endif -#ifndef int32 +#if !defined(int32) && !defined(HAVE_INT32_FROM_RPC_RPC_H) #if (SIZEOF_INT == 4) #define int32 int #elif (SIZEOF_LONG == 4) @@ -339,8 +365,19 @@ #endif #endif -#ifndef uint32 -#define uint32 unsigned int32 +/* + * Note we duplicate the size tests in the unsigned + * case as int32 may be a typedef from rpc/rpc.h + */ + +#if !defined(uint32) && !defined(HAVE_UINT32_FROM_RPC_RPC_H) +#if (SIZEOF_INT == 4) +#define uint32 unsigned int +#elif (SIZEOF_LONG == 4) +#define uint32 unsigned long +#elif (SIZEOF_SHORT == 4) +#define uint32 unsigned short +#endif #endif /* @@ -594,22 +631,6 @@ union semun { #define HAVE_PAM 1 #endif -#if defined(HAVE_YP_GET_DEFAULT_DOMAIN) && defined(HAVE_SETNETGRENT) && defined(HAVE_ENDNETGRENT) && defined(HAVE_GETNETGRENT) -#define HAVE_NETGROUP 1 -#endif - -#if defined (HAVE_NETGROUP) -#if defined(HAVE_RPC_RPC_H) -#include <rpc/rpc.h> -#endif -#if defined(HAVE_RPCSVC_YP_PROT_H) -#include <rpcsvc/yp_prot.h> -#endif -#if defined(HAVE_RPCSVC_YPCLNT_H) -#include <rpcsvc/ypclnt.h> -#endif -#endif /* HAVE_NETGROUP */ - #ifndef ALLOW_CHANGE_PASSWORD #if (defined(HAVE_TERMIOS_H) && defined(HAVE_DUP2) && defined(HAVE_SETSID)) #define ALLOW_CHANGE_PASSWORD 1 |