diff options
author | Richard Levitte <levitte@openssl.org> | 2002-06-13 20:40:49 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-06-13 20:40:49 +0000 |
commit | 573a568dd09e3c376ae0fb66a80023b75fbf1cc5 (patch) | |
tree | 6ff0164f77c426437ea936f8999f2d652e2ffd1e /e_os.h | |
parent | ff3dd003703d2e4930637fccf7bfa828ab2d8f0f (diff) |
Add support for DJGPP.
PR: 75
Diffstat (limited to 'e_os.h')
-rw-r--r-- | e_os.h | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -191,6 +191,14 @@ extern "C" { #if (defined(WINDOWS) || defined(MSDOS)) +# ifdef __DJGPP__ +# include <unistd.h> +# include <sys/stat.h> +# define _setmode setmode +# define _O_TEXT O_TEXT +# define _O_BINARY O_BINARY +# endif /* __DJGPP__ */ + # ifndef S_IFDIR # define S_IFDIR _S_IFDIR # endif @@ -336,7 +344,7 @@ extern "C" { /*************/ #ifdef USE_SOCKETS -# if defined(WINDOWS) || defined(MSDOS) +# if (defined(WINDOWS) || defined(MSDOS)) && !defined(__DJGPP__) /* windows world */ # ifdef OPENSSL_NO_SOCK @@ -423,7 +431,9 @@ extern HINSTANCE _hInstance; # define SSLeay_Write(a,b,c) write((a),(b),(c)) # define SHUTDOWN(fd) { shutdown((fd),0); closesocket((fd)); } # define SHUTDOWN2(fd) { shutdown((fd),2); closesocket((fd)); } +# ifndef INVALID_SOCKET # define INVALID_SOCKET (-1) +# endif /* INVALID_SOCKET */ # endif #endif |