summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-01-02 11:45:33 +1100
committerDamien Miller <djm@mindrot.org>2000-01-02 11:45:33 +1100
commit6b85a7ffa6aefa75be7b19fc08a99d3971e02412 (patch)
treea1e49bce1c5be172c1ecf82dc7b4874470f19e42 /defines.h
parent7cfd3e6fb631a59e28e3f6876d663fae4e63002d (diff)
- Added support for directory-based lastlogs
- Really fix typedefs, patch from Ben Taylor <bent@clark.net> - Prevent multiple inclusion of config.h and defines.h. Suggested by Andre Lucas <andre.lucas@dial.pipex.com>
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/defines.h b/defines.h
index 2a2655953..40c1a3ead 100644
--- a/defines.h
+++ b/defines.h
@@ -1,3 +1,6 @@
1#ifndef _DEFINES_H
2#define _DEFINES_H
3
1/* Necessary headers */ 4/* Necessary headers */
2 5
3#include <sys/types.h> /* For u_intXX_t */ 6#include <sys/types.h> /* For u_intXX_t */
@@ -61,7 +64,7 @@ typedef long int int64_t;
61# else 64# else
62# if (SIZEOF_LONG_LONG_INT == 8) 65# if (SIZEOF_LONG_LONG_INT == 8)
63typedef long long int int64_t; 66typedef long long int int64_t;
64# define HAVE_INTXX_T 67# define HAVE_INTXX_T 1
65# else 68# else
66# error "64 bit int type not found." 69# error "64 bit int type not found."
67# endif 70# endif
@@ -74,6 +77,7 @@ typedef long long int int64_t;
74typedef uint16_t u_int16_t; 77typedef uint16_t u_int16_t;
75typedef uint32_t u_int32_t; 78typedef uint32_t u_int32_t;
76typedef uint64_t u_int64_t; 79typedef uint64_t u_int64_t;
80# define HAVE_U_INTXX_T 1
77# else 81# else
78# if (SIZEOF_SHORT_INT == 2) 82# if (SIZEOF_SHORT_INT == 2)
79typedef unsigned short int u_int16_t; 83typedef unsigned short int u_int16_t;
@@ -90,7 +94,7 @@ typedef unsigned long int u_int64_t;
90# else 94# else
91# if (SIZEOF_LONG_LONG_INT == 8) 95# if (SIZEOF_LONG_LONG_INT == 8)
92typedef unsigned long long int u_int64_t; 96typedef unsigned long long int u_int64_t;
93# define HAVE_U_INTXX_T 97# define HAVE_U_INTXX_T 1
94# else 98# else
95# error "64 bit int type not found." 99# error "64 bit int type not found."
96# endif 100# endif
@@ -224,3 +228,4 @@ typedef unsigned int size_t;
224# define PAM_STRERROR(a,b) pam_strerror((a),(b)) 228# define PAM_STRERROR(a,b) pam_strerror((a),(b))
225#endif 229#endif
226 230
231#endif /* _DEFINES_H */