Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c872a6d

Browse files
main: add missing includes
1 parent 81deea2 commit c872a6d

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

‎main/main.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@
8282
#include "rfc1867.h"
8383

8484
#include "ext/standard/html_tables.h"
85+
86+
#include <float.h> // for DBL_*, used by main_arginfo.h
8587
#include "main_arginfo.h"
8688
/* }}} */
8789

‎main/streams/plain_wrapper.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
# include "win32/readdir.h"
4343
#endif
4444

45+
#include <errno.h>
46+
#include <string.h> // for strerror()
47+
4548
#define php_stream_fopen_from_fd_int(fd, mode, persistent_id) _php_stream_fopen_from_fd_int((fd), (mode), (persistent_id) STREAMS_CC)
4649
#define php_stream_fopen_from_fd_int_rel(fd, mode, persistent_id) _php_stream_fopen_from_fd_int((fd), (mode), (persistent_id) STREAMS_REL_CC)
4750
#define php_stream_fopen_from_file_int(file, mode) _php_stream_fopen_from_file_int((file), (mode) STREAMS_CC)

‎main/streams/streams.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
#include <fcntl.h>
3333
#include "php_streams_int.h"
3434

35+
#include <errno.h>
36+
#include <string.h> // for strerror()
37+
3538
/* {{{ resource and registration code */
3639
/* Global wrapper hash, copied to FG(stream_wrappers) on registration of volatile wrapper */
3740
static HashTable url_stream_wrappers_hash;

‎main/streams/xp_socket.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@
2525

2626
#ifdef AF_UNIX
2727
#include <sys/un.h>
28+
#include <string.h> // for strerror()
2829
#endif
2930

31+
#include <errno.h>
32+
3033
#ifndef MSG_DONTWAIT
3134
# define MSG_DONTWAIT 0
3235
#endif

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /