summaryrefslogtreecommitdiff
path: root/ext/standard/url_scanner_ex.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-09-19 17:53:09 +0000
committerZeev Suraski <zeev@php.net>2000-09-19 17:53:09 +0000
commit5b0ca1585a6be1e9d653ee29d5bd19ea0ffa2466 (patch)
tree3e6130a7d3e76cc3c7f7f5be52995f4d707d53a3 /ext/standard/url_scanner_ex.c
parent51498e1d3f6f21650b544d79ec49c38259df969a (diff)
downloadphp-git-5b0ca1585a6be1e9d653ee29d5bd19ea0ffa2466.tar.gz
Fix a few build bugs, still no go
Diffstat (limited to 'ext/standard/url_scanner_ex.c')
-rw-r--r--ext/standard/url_scanner_ex.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/ext/standard/url_scanner_ex.c b/ext/standard/url_scanner_ex.c
index 8ae8a4d217..ebf82926da 100644
--- a/ext/standard/url_scanner_ex.c
+++ b/ext/standard/url_scanner_ex.c
@@ -22,7 +22,10 @@
#ifdef TRANS_SID
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -107,7 +110,7 @@ static char *check_tag_arg[] = {
NULL
};
-static inline void tag_arg(url_adapt_state_t *ctx PLS_CC)
+static inline void tag_arg(url_adapt_state_t *ctx PLS_DC)
{
char f = 0;
int i;
@@ -585,7 +588,7 @@ yy45:
#ifdef DEBUG
printf("PARA(%s)\n", ctx->para.c);
#endif
- tag_arg(ctx PLS_DC);
+ tag_arg(ctx PLS_CC);
arg_start = YYCURSOR;
GO(STATE_NEXT_ARG);
NEXT;
@@ -626,7 +629,7 @@ yy54:
#ifdef DEBUG
printf("PARA(%s)\n", ctx->para.c);
#endif
- tag_arg(ctx PLS_DC);
+ tag_arg(ctx PLS_CC);
arg_start = YYCURSOR;
GO(STATE_NEXT_ARG);
NEXT;