summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-02-24 00:55:04 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-02-24 00:55:04 +0000
commit38e60935bbece7ca891bf9264366c26d7a42414e (patch)
treeae4cd7626fefeacc689004b87bf4c780a540244b /defines.h
parent803f16cbe4acdcfaf21e87c5f655c63b85f8d1a3 (diff)
downloadopenssh-git-38e60935bbece7ca891bf9264366c26d7a42414e.tar.gz
- (bal) Generalize lack of UNIX sockets since this also effects Cray
not just Cygwin. Based on patch by Wendy Palm <wendyp@cray.com>
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h26
1 files changed, 21 insertions, 5 deletions
diff --git a/defines.h b/defines.h
index 635bfad2..5b89765d 100644
--- a/defines.h
+++ b/defines.h
@@ -1,7 +1,7 @@
#ifndef _DEFINES_H
#define _DEFINES_H
-/* $Id: defines.h,v 1.55 2001/02/16 01:34:57 djm Exp $ */
+/* $Id: defines.h,v 1.56 2001/02/24 00:55:05 mouring Exp $ */
/* Some platforms need this for the _r() functions */
#if !defined(_REENTRANT) && !defined(SNI)
@@ -138,12 +138,20 @@ typedef char int8_t;
# if (SIZEOF_SHORT_INT == 2)
typedef short int int16_t;
# else
-# error "16 bit int type not found."
+# ifdef _CRAY
+typedef long int16_t;
+# else
+# error "16 bit int type not found."
+# endif /* _CRAY */
# endif
# if (SIZEOF_INT == 4)
typedef int int32_t;
# else
-# error "32 bit int type not found."
+# ifdef _CRAY
+typedef long int32_t;
+# else
+# error "32 bit int type not found."
+# endif /* _CRAY */
# endif
#endif
@@ -163,12 +171,20 @@ typedef unsigned char u_int8_t;
# if (SIZEOF_SHORT_INT == 2)
typedef unsigned short int u_int16_t;
# else
-# error "16 bit int type not found."
+# ifdef _CRAY
+typedef unsigned long u_int16_t;
+# else
+# error "16 bit int type not found."
+# endif
# endif
# if (SIZEOF_INT == 4)
typedef unsigned int u_int32_t;
# else
-# error "32 bit int type not found."
+# ifdef _CRAY
+typedef unsigned long u_int32_t;
+# else
+# error "32 bit int type not found."
+# endif
# endif
# endif
#endif