summaryrefslogtreecommitdiff
path: root/e_os2.h
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>1999-06-09 13:23:38 +0000
committerBodo Möller <bodo@openssl.org>1999-06-09 13:23:38 +0000
commite766a681aa4df604b20ce2d23cd131b74af9eaf7 (patch)
tree6ab2ba6c2881f49cb0ec8091d04100eef3653c84 /e_os2.h
parent9e952fc8770bf72b03fdd7acf6a1843070b44b4b (diff)
downloadopenssl-new-e766a681aa4df604b20ce2d23cd131b74af9eaf7.tar.gz
Some pre-POSIX systems don't have unistd.h (but e.g. lib.c).
Allow configuring the name of that header file.
Diffstat (limited to 'e_os2.h')
-rw-r--r--e_os2.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/e_os2.h b/e_os2.h
index 2bc0b48798..bd97b921a8 100644
--- a/e_os2.h
+++ b/e_os2.h
@@ -7,6 +7,16 @@
extern "C" {
#endif
+#include <openssl/opensslconf.h> /* OPENSSL_UNISTD */
+
+#ifdef MSDOS
+# define OPENSSL_UNISTD_IO <io.h>
+# define OPENSSL_DECLARE_EXIT extern void exit(int);
+#else
+# define OPENSSL_UNISTD_IO OPENSSL_UNISTD
+# define OPENSSL_DECLARE_EXIT /* declared in unistd.h */
+#endif
+
/* Definitions of OPENSSL_GLOBAL and OPENSSL_EXTERN,
to define and declare certain global
symbols that, with some compilers under VMS, have to be defined and