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)
downloadopenssh-git-93e7e8f345367136b4c3881c6eb3d756a43fe148.tar.gz
- (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 39d18e3d..3103f874 100644
--- a/defines.h
+++ b/defines.h
@@ -25,7 +25,7 @@
#ifndef _DEFINES_H
#define _DEFINES_H
-/* $Id: defines.h,v 1.123 2005/08/10 11:52:36 dtucker Exp $ */
+/* $Id: defines.h,v 1.124 2005/08/22 22:06:56 dtucker Exp $ */
/* Constants */
@@ -579,6 +579,23 @@ struct winsize {
# define SSH_SYSFDMAX 10000
#endif
+#if defined(__Lynx__)
+ /*
+ * LynxOS defines these in param.h which we do not want to include since
+ * it will also pull in a bunch of kernel definitions.
+ */
+# define ALIGNBYTES (sizeof(int) - 1)
+# define ALIGN(p) (((unsigned)p + ALIGNBYTES) & ~ALIGNBYTES)
+ /* Missing prototypes on LynxOS */
+ int snprintf (char *, size_t, const char *, ...);
+ int mkstemp (char *);
+ char *crypt (const char *, const char *);
+ int seteuid (uid_t);
+ int setegid (gid_t);
+ char *mkdtemp (char *);
+ int rresvport_af (int *, sa_family_t);
+ int innetgr (const char *, const char *, const char *, const char *);
+#endif
/*
* Define this to use pipes instead of socketpairs for communicating with the