#if HAVE_PWD_H
#ifdef PHP_WIN32
#include "win32/pwd.h"
+#elif defined(NETWARE)
+#include "netware/pwd.h"
#else
#include <pwd.h>
#endif
PHP_FUNCTION(linkinfo)
{
zval **filename;
+#if defined(NETWARE) && defined(CLIB_STAT_PATCH)
+ struct stat_libc sb;
+#else
struct stat sb;
+#endif
int ret;
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &filename) == FAILURE) {
#include <stdio.h>
#include "php.h"
#include "ext/standard/info.h"
-#if !defined(PHP_WIN32)
+#if !defined(PHP_WIN32) && !defined(NETWARE)
#include "build-defs.h"
#if HAVE_SYSEXITS_H
#include <sysexits.h>
#include "win32/sendmail.h"
#endif
+#ifdef NETWARE
+#include "netware/pipe.h" /* For popen(), pclose() */
+#include "netware/sysexits.h" /* For exit status codes like EX_OK */
+#endif
+
/* {{{ proto int ezmlm_hash(string addr)
Calculate EZMLM list hash value. */
PHP_FUNCTION(ezmlm_hash)
*/
PHPAPI int php_mail(char *to, char *subject, char *message, char *headers, char *extra_cmd TSRMLS_DC)
{
-#ifdef PHP_WIN32
+/*#ifdef PHP_WIN32*/
+#if (defined PHP_WIN32 || defined NETWARE)
int tsm_err;
char *tsm_errmsg = NULL;
#endif
char *sendmail_cmd = NULL;
if (!sendmail_path) {
-#ifdef PHP_WIN32
+/*#ifdef PHP_WIN32*/
+#if (defined PHP_WIN32 || defined NETWARE)
/* handle old style win smtp sending */
if (TSendMail(INI_STR("SMTP"), &tsm_err, &tsm_errmsg, headers, subject, to, message, NULL, NULL, NULL) == FAILURE) {
if (tsm_errmsg) {