diff options
author | Damien Miller <djm@mindrot.org> | 2000-01-02 11:45:33 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-01-02 11:45:33 +1100 |
commit | 6b85a7ffa6aefa75be7b19fc08a99d3971e02412 (patch) | |
tree | a1e49bce1c5be172c1ecf82dc7b4874470f19e42 /defines.h | |
parent | 7cfd3e6fb631a59e28e3f6876d663fae4e63002d (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.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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) |
63 | typedef long long int int64_t; | 66 | typedef 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; | |||
74 | typedef uint16_t u_int16_t; | 77 | typedef uint16_t u_int16_t; |
75 | typedef uint32_t u_int32_t; | 78 | typedef uint32_t u_int32_t; |
76 | typedef uint64_t u_int64_t; | 79 | typedef 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) |
79 | typedef unsigned short int u_int16_t; | 83 | typedef 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) |
92 | typedef unsigned long long int u_int64_t; | 96 | typedef 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 */ | ||