summaryrefslogtreecommitdiff
path: root/main/php_open_temporary_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/php_open_temporary_file.c')
-rw-r--r--main/php_open_temporary_file.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/main/php_open_temporary_file.c b/main/php_open_temporary_file.c
index 9426297133..f2303882f4 100644
--- a/main/php_open_temporary_file.c
+++ b/main/php_open_temporary_file.c
@@ -30,13 +30,6 @@
#define O_RDONLY _O_RDONLY
#include "win32/param.h"
#include "win32/winutil.h"
-#elif defined(NETWARE)
-#ifdef USE_WINSOCK
-#include <novsock2.h>
-#else
-#include <sys/socket.h>
-#endif
-#include <sys/param.h>
#else
#include <sys/param.h>
#include <sys/socket.h>
@@ -121,7 +114,7 @@ static int php_do_open_temporary_file(const char *path, const char *pfx, zend_st
}
#ifdef PHP_WIN32
- if (!php_win32_check_trailing_space(pfx, (const int)strlen(pfx))) {
+ if (!php_win32_check_trailing_space(pfx, strlen(pfx))) {
SetLastError(ERROR_INVALID_NAME);
return -1;
}