In latest 0.9.8 snapshot, some test-files include a protype for read(). 
Unfortunately this protype doesn't match the one in djgpp's <unistd.h>. 

Can we not removed this prototype?
The required system headers are included already I think.
Here is a patch to make it compile for djgpp:

-----------------------------------------------------------------------
--- ./crypto/md4/md4.c.org  Wed Nov 13 16:00:50 2002
+++ ./crypto/md4/md4.c      Tue Dec 31 18:45:54 2002
@@ -64,7 +64,7 @@

 void do_fp(FILE *f);
 void pt(unsigned char *md);
-#ifndef _OSD_POSIX
+#if !defined(_OSD_POSIX) && !defined(__DJGPP__)
 int read(int, void *, unsigned int);
 #endif

--- ./crypto/md5/md5.c.org  Fri Jun  4 22:00:22 1999
+++ ./crypto/md5/md5.c      Tue Dec 31 18:49:44 2002
@@ -64,7 +64,7 @@

 void do_fp(FILE *f);
 void pt(unsigned char *md);
-#ifndef _OSD_POSIX
+#if !defined(_OSD_POSIX) && !defined(__DJGPP__)
 int read(int, void *, unsigned int);
 #endif

--- ./crypto/ripemd/rmd160.c.org    Fri Jun  4 22:00:28 1999
+++ ./crypto/ripemd/rmd160.c        Tue Dec 31 18:51:50 2002
@@ -64,7 +64,7 @@

 void do_fp(FILE *f);
 void pt(unsigned char *md);
-#ifndef _OSD_POSIX
+#if !defined(_OSD_POSIX) && !defined(__DJGPP__)
 int read(int, void *, unsigned int);
 #endif
-----------------------------------------------------------------------

Gisle V.


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to