/* Index for reading from buffer */
int post_idx;
/* stat structure of the current file */
+#if defined(NETWARE) && defined(CLIB_STAT_PATCH)
+ struct stat_libc finfo;
+#else
struct stat finfo;
+#endif
/* Buffer for request body filter */
char *post_data;
/* Whether or not we've processed PHP in the output filters yet. */
#include "SAPI.h"
#include "ext/standard/php_smart_str.h"
+#ifndef NETWARE
#include "ext/standard/php_standard.h"
+#else
+#include "ext/standard/basic_functions.h"
+#endif
#include "apr_strings.h"
#include "ap_config.h"
#include "php_apache.h"
+#ifdef NETWARE
+#undef shutdown /* To avoid Winsock confusion */
+#endif
+
/* A way to specify the location of the php.ini dir in an apache directive */
char *apache2_php_ini_path_override = NULL;
ctx->finfo.st_uid = ctx->r->finfo.user;
ctx->finfo.st_gid = ctx->r->finfo.group;
ctx->finfo.st_ino = ctx->r->finfo.inode;
+#if defined(NETWARE) && defined(CLIB_STAT_PATCH)
+ ctx->finfo.st_atime.tv_sec = ctx->r->finfo.atime/1000000;
+ ctx->finfo.st_mtime.tv_sec = ctx->r->finfo.mtime/1000000;
+ ctx->finfo.st_ctime.tv_sec = ctx->r->finfo.ctime/1000000;
+#else
ctx->finfo.st_atime = ctx->r->finfo.atime/1000000;
ctx->finfo.st_mtime = ctx->r->finfo.mtime/1000000;
ctx->finfo.st_ctime = ctx->r->finfo.ctime/1000000;
+#endif
+
ctx->finfo.st_size = ctx->r->finfo.size;
ctx->finfo.st_nlink = ctx->r->finfo.nlink;