diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-01-23 16:26:52 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-01-23 16:26:52 +0000 |
commit | 16a86be01aa1f097c5ceaea9ea96253e55d9a016 (patch) | |
tree | 116b6924241a060b11edec29f9c8ac2727b3bcc8 | |
parent | bda5bdcf8d1238b75e29094155da16e058b6e33b (diff) |
- (bal) no 64bit support patch from Tim Rice <tim@multitalents.net>
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | bufaux.c | 4 | ||||
-rw-r--r-- | bufaux.h | 4 | ||||
-rw-r--r-- | defines.h | 6 |
4 files changed, 13 insertions, 2 deletions
@@ -3,6 +3,7 @@ - markus@cvs.openbsd.org 2001/01/23 10:45:10 [ssh.h] nuke comment + - (bal) no 64bit support patch from Tim Rice <tim@multitalents.net> 20010123 - (bal) regexp.h typo in configure.in. Should have been regex.h @@ -152,6 +152,7 @@ buffer_get_int(Buffer *buffer) return GET_32BIT(buf); } +#ifdef HAVE_U_INT64_T u_int64_t buffer_get_int64(Buffer *buffer) { @@ -159,6 +160,7 @@ buffer_get_int64(Buffer *buffer) buffer_get(buffer, (char *) buf, 8); return GET_64BIT(buf); } +#endif /* * Stores an integer in the buffer in 4 bytes, msb first. @@ -171,6 +173,7 @@ buffer_put_int(Buffer *buffer, u_int value) buffer_append(buffer, buf, 4); } +#ifdef HAVE_U_INT64_T void buffer_put_int64(Buffer *buffer, u_int64_t value) { @@ -178,6 +181,7 @@ buffer_put_int64(Buffer *buffer, u_int64_t value) PUT_64BIT(buf, value); buffer_append(buffer, buf, 8); } +#endif /* * Returns an arbitrary binary string from the buffer. The string cannot @@ -31,11 +31,15 @@ int buffer_get_bignum2(Buffer *buffer, BIGNUM * value); /* Returns an integer from the buffer (4 bytes, msb first). */ u_int buffer_get_int(Buffer * buffer); +#ifdef HAVE_U_INT64_T u_int64_t buffer_get_int64(Buffer *buffer); +#endif /* Stores an integer in the buffer in 4 bytes, msb first. */ void buffer_put_int(Buffer * buffer, u_int value); +#ifdef HAVE_U_INT64_T void buffer_put_int64(Buffer *buffer, u_int64_t value); +#endif /* Returns a character from the buffer (0 - 255). */ int buffer_get_char(Buffer * buffer); @@ -171,20 +171,22 @@ typedef unsigned int u_int32_t; #ifndef HAVE_INT64_T # if (SIZEOF_LONG_INT == 8) typedef long int int64_t; +# define HAVE_INT64_T 1 # else # if (SIZEOF_LONG_LONG_INT == 8) typedef long long int int64_t; -# define HAVE_INTXX_T 1 +# define HAVE_INT64_T 1 # endif # endif #endif #ifndef HAVE_U_INT64_T # if (SIZEOF_LONG_INT == 8) typedef unsigned long int u_int64_t; +# define HAVE_U_INT64_T 1 # else # if (SIZEOF_LONG_LONG_INT == 8) typedef unsigned long long int u_int64_t; -# define HAVE_U_INTXX_T 1 +# define HAVE_U_INT64_T 1 # endif # endif #endif |