summaryrefslogtreecommitdiff
path: root/acconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'acconfig.h')
-rw-r--r--acconfig.h77
1 files changed, 68 insertions, 9 deletions
diff --git a/acconfig.h b/acconfig.h
index d5a12b2bc..a37c0823c 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -6,6 +6,9 @@
6/* Location of lastlog file */ 6/* Location of lastlog file */
7#undef LASTLOG_LOCATION 7#undef LASTLOG_LOCATION
8 8
9/* If lastlog is a directory */
10#undef LASTLOG_IS_DIR
11
9/* Location of random number pool */ 12/* Location of random number pool */
10#undef RANDOM_POOL 13#undef RANDOM_POOL
11 14
@@ -51,13 +54,22 @@
51/* Define if you want to allow MD5 passwords */ 54/* Define if you want to allow MD5 passwords */
52#undef HAVE_MD5_PASSWORDS 55#undef HAVE_MD5_PASSWORDS
53 56
57/* Data types */
58#undef HAVE_QUAD_T
59#undef HAVE_INTXX_T
60#undef HAVE_U_INTXX_T
61#undef HAVE_UINTXX_T
62
54@BOTTOM@ 63@BOTTOM@
55 64
56/* ******************* Shouldn't need to edit below this line ************** */ 65/* ******************* Shouldn't need to edit below this line ************** */
57 66
58#include <sys/types.h> /* For u_intXX_t */ 67# include <sys/types.h> /* For u_intXX_t */
59#include <sys/socket.h> /* For SHUT_XXXX */ 68# include <sys/socket.h> /* For SHUT_XXXX */
60#include <paths.h> /* For _PATH_XXX */ 69
70#ifdef HAVE_PATHS_H
71# include <paths.h> /* For _PATH_XXX */
72#endif
61 73
62#ifndef SHUT_RDWR 74#ifndef SHUT_RDWR
63enum 75enum
@@ -71,16 +83,63 @@ enum
71}; 83};
72#endif 84#endif
73 85
74#if !defined(u_int32_t) && defined(uint32_t) 86/* If sys/types.h does not supply intXX_t, supply them ourselves */
75#define u_int32_t uint32_t 87/* (or die trying) */
88#ifndef HAVE_INTXX_T
89# if (SIZEOF_SHORT_INT == 2)
90# define int16_t short int
91# else
92# error "16 bit int type not found."
93# endif
94# if (SIZEOF_INT == 4)
95# define int32_t int
96# else
97# error "32 bit int type not found."
98# endif
99# if (SIZEOF_LONG_INT == 8)
100# define int64_t long int
101# else
102# if (SIZEOF_LONG_LONG_INT == 8)
103# define int64_t long long int
104# else
105# error "64 bit int type not found."
106# endif
107# endif
76#endif 108#endif
77 109
78#if !defined(u_int16_t) && defined(uint16_t) 110/* If sys/types.h does not supply u_intXX_t, supply them ourselves */
79#define u_int16_t uint16_t 111#ifndef HAVE_U_INTXX_T
112# ifdef HAVE_UINTXX_T
113# define u_int16_t uint16_t
114# define u_int32_t uint32_t
115# define u_int64_t uint64_t
116# else
117# if (SIZEOF_SHORT_INT == 2)
118# define u_int16_t unsigned short int
119# else
120# error "16 bit int type not found."
121# endif
122# if (SIZEOF_INT == 4)
123# define u_int32_t unsigned int
124# else
125# error "32 bit int type not found."
126# endif
127# if (SIZEOF_LONG_INT == 8)
128# define u_int64_t unsigned long int
129# else
130# if (SIZEOF_LONG_LONG_INT == 8)
131# define u_int64_t unsigned long long int
132# else
133# error "64 bit int type not found."
134# endif
135# endif
136# endif
80#endif 137#endif
81 138
82#if !defined(quad_t) && defined(int64_t) 139/* If quad_t is not supplied, then supply it now. We can rely on int64_t */
83#define quad_t int64_t 140/* being defined by the above */
141#ifndef HAVE_QUAD_T
142# define quad_t int64_t
84#endif 143#endif
85 144
86#ifndef _PATH_LASTLOG 145#ifndef _PATH_LASTLOG