From 2104bea5d756dfa40b605a4a2765a3bc4637a76c Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Sat, 12 Nov 2016 11:20:01 +0100 Subject: Remove Netware support If this does not break the Unix system somehow, I'll be amazed. This should get most of it out, apologies for any errors this may cause on non-Windows ends which I cannot test atm. --- Zend/zend_stream.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'Zend/zend_stream.c') diff --git a/Zend/zend_stream.c b/Zend/zend_stream.c index b3553bd3cc..680a50aea0 100644 --- a/Zend/zend_stream.c +++ b/Zend/zend_stream.c @@ -156,16 +156,7 @@ static size_t zend_stream_read(zend_file_handle *file_handle, char *buf, size_t int c = '*'; size_t n; -#ifdef NETWARE - /* - c != 4 check is there as fread of a character in NetWare LibC gives 4 upon ^D character. - Ascii value 4 is actually EOT character which is not defined anywhere in the LibC - or else we can use instead of hardcoded 4. - */ - for (n = 0; n < len && (c = zend_stream_getc(file_handle)) != EOF && c != 4 && c != '\n'; ++n) { -#else for (n = 0; n < len && (c = zend_stream_getc(file_handle)) != EOF && c != '\n'; ++n) { -#endif buf[n] = (char)c; } if (c == '\n') { -- cgit v1.2.1