diff options
-rw-r--r-- | defines.h | 6 | ||||
-rw-r--r-- | scp.c | 2 |
2 files changed, 6 insertions, 2 deletions
@@ -1,7 +1,7 @@ | |||
1 | #ifndef _DEFINES_H | 1 | #ifndef _DEFINES_H |
2 | #define _DEFINES_H | 2 | #define _DEFINES_H |
3 | 3 | ||
4 | /* $Id: defines.h,v 1.57 2001/03/18 23:09:28 djm Exp $ */ | 4 | /* $Id: defines.h,v 1.58 2001/03/19 01:56:14 djm Exp $ */ |
5 | 5 | ||
6 | /* Some platforms need this for the _r() functions */ | 6 | /* Some platforms need this for the _r() functions */ |
7 | #if !defined(_REENTRANT) && !defined(SNI) | 7 | #if !defined(_REENTRANT) && !defined(SNI) |
@@ -125,6 +125,10 @@ enum | |||
125 | /* If sys/types.h does not supply intXX_t, supply them ourselves */ | 125 | /* If sys/types.h does not supply intXX_t, supply them ourselves */ |
126 | /* (or die trying) */ | 126 | /* (or die trying) */ |
127 | 127 | ||
128 | #ifdef SIZEOF_LONG_LONG_INT | ||
129 | # define HAVE_LONG_LONG_INT | ||
130 | #endif | ||
131 | |||
128 | #ifndef HAVE_U_INT | 132 | #ifndef HAVE_U_INT |
129 | typedef unsigned int u_int; | 133 | typedef unsigned int u_int; |
130 | #endif | 134 | #endif |
@@ -545,7 +545,7 @@ syserr: run_err("%s: %s", name, strerror(errno)); | |||
545 | goto next; | 545 | goto next; |
546 | } | 546 | } |
547 | #define FILEMODEMASK (S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO) | 547 | #define FILEMODEMASK (S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO) |
548 | #ifdef HAVE_INT64_T | 548 | #ifdef HAVE_LONG_LONG_INT |
549 | snprintf(buf, sizeof buf, "C%04o %lld %s\n", | 549 | snprintf(buf, sizeof buf, "C%04o %lld %s\n", |
550 | (u_int) (stb.st_mode & FILEMODEMASK), | 550 | (u_int) (stb.st_mode & FILEMODEMASK), |
551 | (long long) stb.st_size, last); | 551 | (long long) stb.st_size, last); |