Skip to content

Commit bc95839

Browse files
author
Venkat Raghavan S
committed
NetWare changes
1 parent b47980e commit bc95839

File tree

3 files changed

+87
-1
lines changed

3 files changed

+87
-1
lines changed

Zend/acconfig.h

+4
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,19 @@
22
#define ZEND_DLEXPORT
33
#define ZEND_DLIMPORT
44

5+
#ifndef NETWARE
56
@TOP@
7+
#endif
68

79
#undef uint
810
#undef ulong
911

1012
/* Define if you want to enable memory limit support */
1113
#define MEMORY_LIMIT 0
1214

15+
#ifndef NETWARE
1316
@BOTTOM@
17+
#endif
1418

1519
#ifdef HAVE_STDLIB_H
1620
# include <stdlib.h>

Zend/zend.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
#ifdef ZEND_WIN32
4444
# include "zend_config.w32.h"
4545
# define ZEND_PATHS_SEPARATOR ';'
46+
#elif defined(NETWARE)
47+
# include "zend_config.nw.h"
48+
# include "acconfig.h"
4649
#elif defined(__riscos__)
4750
# include "zend_config.h"
4851
# define ZEND_PATHS_SEPARATOR ';'
@@ -118,7 +121,7 @@ char *alloca ();
118121
# endif
119122
#endif
120123

121-
#if (HAVE_ALLOCA || (defined (__GNUC__) && __GNUC__ >= 2)) && !(defined(ZTS) && defined(ZEND_WIN32))
124+
#if (HAVE_ALLOCA || (defined (__GNUC__) && __GNUC__ >= 2)) && !(defined(ZTS) && defined(ZEND_WIN32)) && !(defined(ZTS) && defined(NETWARE))
122125
# define do_alloca(p) alloca(p)
123126
# define free_alloca(p)
124127
#else

Zend/zend_config.nw.h

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
/*
2+
+----------------------------------------------------------------------+
3+
| Zend Engine |
4+
+----------------------------------------------------------------------+
5+
| Copyright (c) 1998-2002 Zend Technologies Ltd. (http://www.zend.com) |
6+
+----------------------------------------------------------------------+
7+
| This source file is subject to version 2.00 of the Zend license, |
8+
| that is bundled with this package in the file LICENSE, and is |
9+
| available at through the world-wide-web at |
10+
| http://www.zend.com/license/2_00.txt. |
11+
| If you did not receive a copy of the Zend license and are unable to |
12+
| obtain it through the world-wide-web, please send a note to |
13+
| license@zend.com so we can mail you a copy immediately. |
14+
+----------------------------------------------------------------------+
15+
| Authors: Andi Gutmans <andi@zend.com> |
16+
| Zeev Suraski <zeev@zend.com> |
17+
+----------------------------------------------------------------------+
18+
*/
19+
20+
21+
#ifndef ZEND_CONFIG_NW_H
22+
#define ZEND_CONFIG_NW_H
23+
24+
25+
#include <string.h>
26+
#include <float.h>
27+
28+
typedef unsigned long ulong;
29+
typedef unsigned int uint;
30+
31+
#define HAVE_ALLOCA 1
32+
#define HAVE_LIMITS_H 1
33+
/* #include <malloc.h> */
34+
35+
#define HAVE_STRING_H 1
36+
37+
#undef HAVE_KILL
38+
#define HAVE_GETPID 1
39+
/* #define HAVE_ALLOCA_H 1 */
40+
#define HAVE_MEMCPY 1
41+
#define HAVE_STRDUP 1
42+
#define HAVE_SYS_TYPES_H 1
43+
/* #define HAVE_STDIOSTR_H 1 */
44+
#define HAVE_CLASS_ISTDIOSTREAM
45+
#define istdiostream stdiostream
46+
#define HAVE_STDARG_H 1
47+
#define HAVE_DLFCN_H 1
48+
/* #define HAVE_LIBDL 1 */
49+
#define HAVE_SNPRINTF 1
50+
#define HAVE_VSNPRINTF 1
51+
52+
/*
53+
#define snprintf _snprintf
54+
#define vsnprintf _vsnprintf
55+
#define zend_isinf(a) 0
56+
#define zend_finite(x) _finite(x)
57+
#define zend_isnan(x) _isnan(x)
58+
*/
59+
60+
#define zend_sprintf sprintf
61+
62+
/* This will cause the compilation process to be MUCH longer, but will generate
63+
* a much quicker PHP binary
64+
*/
65+
/*
66+
#undef inline
67+
#ifdef ZEND_WIN32_FORCE_INLINE
68+
# define inline __forceinline
69+
#else
70+
# define inline
71+
#endif
72+
*/
73+
74+
/*
75+
#define zend_finite(A) _finite(A)
76+
#define zend_isnan(A) _isnan(A)
77+
*/
78+
79+
#endif /* ZEND_CONFIG_NW_H */

0 commit comments

Comments
 (0)