aboutsummaryrefslogtreecommitdiffstats
path: root/devel/pecl-expect/files/patch-expect_fopen_wrapper.c
blob: 7c9af015aada41d4bc037ece268bd270a1dfaaaf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- expect_fopen_wrapper.c.orig	2020-01-13 18:27:49 UTC
+++ expect_fopen_wrapper.c
@@ -23,6 +23,10 @@
 #include "php_streams.h"
 #include <sys/wait.h>
 
+#if PHP_MAJOR_VERSION >= 8
+#define TSRMLS_DC
+#endif
+
 #if PHP_MAJOR_VERSION >= 7
 php_stream *php_expect_stream_open (php_stream_wrapper *wrapper, const char *command, const char *mode, int options, 
                            zend_string **opened_command, php_stream_context *context STREAMS_DC TSRMLS_DC)