Skip to content

Commit 6b34de8

Browse files
MaxKellermannGirgias
authored andcommitted
sapi/*: add missing includes
1 parent aa1cd02 commit 6b34de8

File tree

5 files changed

+12
-0
lines changed

5 files changed

+12
-0
lines changed

sapi/cgi/cgi_main.c

+2
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ int __riscosify_control = __RISCOSIFY_STRICT_UNIX_SPECS;
9595
# include "valgrind/callgrind.h"
9696
#endif
9797

98+
#include <errno.h>
99+
98100
#ifndef PHP_WIN32
99101
/* XXX this will need to change later when threaded fastcgi is implemented. shane */
100102
struct sigaction act, old_term, old_quit, old_int;

sapi/cli/php_cli.c

+2
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@
9292
# include "openssl/applink.c"
9393
#endif
9494

95+
#include <errno.h>
96+
9597
PHPAPI extern char *php_ini_opened_path;
9698
PHPAPI extern char *php_ini_scanned_path;
9799
PHPAPI extern char *php_ini_scanned_files;

sapi/cli/php_cli_server.c

+3
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@
106106
#include "php_cli_process_title.h"
107107
#include "php_cli_process_title_arginfo.h"
108108

109+
#include <errno.h>
110+
#include <string.h> // for strerror()
111+
109112
#define OUTPUT_NOT_CHECKED -1
110113
#define OUTPUT_IS_TTY 1
111114
#define OUTPUT_NOT_TTY 0

sapi/fpm/fpm/fpm_main.c

+3
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ int __riscosify_control = __RISCOSIFY_STRICT_UNIX_SPECS;
9393
#include "fpm_log.h"
9494
#include "zlog.h"
9595

96+
#include <errno.h>
97+
#include <string.h> // for strerror()
98+
9699
/* XXX this will need to change later when threaded fastcgi is implemented. shane */
97100
struct sigaction act, old_term, old_quit, old_int;
98101

sapi/phpdbg/phpdbg_io.c

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020

2121
#include "phpdbg_io.h"
2222

23+
#include <errno.h>
24+
2325
ZEND_EXTERN_MODULE_GLOBALS(phpdbg)
2426

2527
/* is easy to generalize ... but not needed for now */

0 commit comments

Comments
 (0)