diff options
author | Matt Johnston <matt@ucc.asn.au> | 2006-10-02 06:39:32 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2006-10-02 06:39:32 +0000 |
commit | 6fa254325e49f73689f30c35c025087101e99f2a (patch) | |
tree | 40e8a4fbedf6e12df108bade305bb5b5a918f405 | |
parent | f51d956b6ef2e4b9fe21cb2457fd324030d96945 (diff) | |
parent | 9ca5291d86458f30a2896ef004c982134fa13a89 (diff) | |
download | dropbear-6fa254325e49f73689f30c35c025087101e99f2a.tar.gz |
explicit merge of '0501e6f661b5415eb76f3b312d183c3adfbfb712'
and '2b954d406290e6a2be8eb4a262d3675ac95ac544'
-rw-r--r-- | CHANGES | 4 | ||||
-rw-r--r-- | scpmisc.h | 21 |
2 files changed, 25 insertions, 0 deletions
@@ -1,3 +1,7 @@ +0.48.1 - Sat 11 March 2006 + +- Compile fix for scp + 0.48 - Thurs 9 March 2006 - Check that the circular buffer is properly empty before @@ -46,3 +46,24 @@ char *xstrdup(const char *); char *ssh_get_progname(char *); void fatal(char* fmt,...); void sanitise_stdfd(void); + +/* Required for non-BSD platforms, from OpenSSH's defines.h */ +#ifndef timersub +#define timersub(a, b, result) \ + do { \ + (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \ + (result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \ + if ((result)->tv_usec < 0) { \ + --(result)->tv_sec; \ + (result)->tv_usec += 1000000; \ + } \ + } while (0) +#endif + +#ifndef TIMEVAL_TO_TIMESPEC +#define TIMEVAL_TO_TIMESPEC(tv, ts) { \ + (ts)->tv_sec = (tv)->tv_sec; \ + (ts)->tv_nsec = (tv)->tv_usec * 1000; \ +} +#endif + |