summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-08-23 08:06:55 +1000
committerDarren Tucker <dtucker@zip.com.au>2005-08-23 08:06:55 +1000
commit93e7e8f345367136b4c3881c6eb3d756a43fe148 (patch)
treefbad8c774170f6028660370d3928ff4eb7fe71ae /defines.h
parent1d10976c161cfb2e7ec114b7c72885e6f195a3d5 (diff)
- (dtucker) [configure.ac defines.h includes.h sftp.c] Add support for
LynxOS, patch from Olli Savia (ops at iki.fi). ok djm@
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/defines.h b/defines.h
index 39d18e3d3..3103f8743 100644
--- a/defines.h
+++ b/defines.h
@@ -25,7 +25,7 @@
25#ifndef _DEFINES_H 25#ifndef _DEFINES_H
26#define _DEFINES_H 26#define _DEFINES_H
27 27
28/* $Id: defines.h,v 1.123 2005/08/10 11:52:36 dtucker Exp $ */ 28/* $Id: defines.h,v 1.124 2005/08/22 22:06:56 dtucker Exp $ */
29 29
30 30
31/* Constants */ 31/* Constants */
@@ -579,6 +579,23 @@ struct winsize {
579# define SSH_SYSFDMAX 10000 579# define SSH_SYSFDMAX 10000
580#endif 580#endif
581 581
582#if defined(__Lynx__)
583 /*
584 * LynxOS defines these in param.h which we do not want to include since
585 * it will also pull in a bunch of kernel definitions.
586 */
587# define ALIGNBYTES (sizeof(int) - 1)
588# define ALIGN(p) (((unsigned)p + ALIGNBYTES) & ~ALIGNBYTES)
589 /* Missing prototypes on LynxOS */
590 int snprintf (char *, size_t, const char *, ...);
591 int mkstemp (char *);
592 char *crypt (const char *, const char *);
593 int seteuid (uid_t);
594 int setegid (gid_t);
595 char *mkdtemp (char *);
596 int rresvport_af (int *, sa_family_t);
597 int innetgr (const char *, const char *, const char *, const char *);
598#endif
582 599
583/* 600/*
584 * Define this to use pipes instead of socketpairs for communicating with the 601 * Define this to use pipes instead of socketpairs for communicating with the