mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-09-25 19:08:56 +02:00
Better fix for long long
This commit is contained in:
parent
ffd0e10b9c
commit
753b1c05a5
@ -1,7 +1,7 @@
|
|||||||
#ifndef _DEFINES_H
|
#ifndef _DEFINES_H
|
||||||
#define _DEFINES_H
|
#define _DEFINES_H
|
||||||
|
|
||||||
/* $Id: defines.h,v 1.57 2001/03/18 23:09:28 djm Exp $ */
|
/* $Id: defines.h,v 1.58 2001/03/19 01:56:14 djm Exp $ */
|
||||||
|
|
||||||
/* Some platforms need this for the _r() functions */
|
/* Some platforms need this for the _r() functions */
|
||||||
#if !defined(_REENTRANT) && !defined(SNI)
|
#if !defined(_REENTRANT) && !defined(SNI)
|
||||||
@ -125,6 +125,10 @@ enum
|
|||||||
/* If sys/types.h does not supply intXX_t, supply them ourselves */
|
/* If sys/types.h does not supply intXX_t, supply them ourselves */
|
||||||
/* (or die trying) */
|
/* (or die trying) */
|
||||||
|
|
||||||
|
#ifdef SIZEOF_LONG_LONG_INT
|
||||||
|
# define HAVE_LONG_LONG_INT
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_U_INT
|
#ifndef HAVE_U_INT
|
||||||
typedef unsigned int u_int;
|
typedef unsigned int u_int;
|
||||||
#endif
|
#endif
|
||||||
|
2
scp.c
2
scp.c
@ -545,7 +545,7 @@ syserr: run_err("%s: %s", name, strerror(errno));
|
|||||||
goto next;
|
goto next;
|
||||||
}
|
}
|
||||||
#define FILEMODEMASK (S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO)
|
#define FILEMODEMASK (S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO)
|
||||||
#ifdef HAVE_INT64_T
|
#ifdef HAVE_LONG_LONG_INT
|
||||||
snprintf(buf, sizeof buf, "C%04o %lld %s\n",
|
snprintf(buf, sizeof buf, "C%04o %lld %s\n",
|
||||||
(u_int) (stb.st_mode & FILEMODEMASK),
|
(u_int) (stb.st_mode & FILEMODEMASK),
|
||||||
(long long) stb.st_size, last);
|
(long long) stb.st_size, last);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user