summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2008-02-27 00:32:39 +0000
committerIlia Alshanetsky <iliaa@php.net>2008-02-27 00:32:39 +0000
commit45c443576e0257caa0995b862bd0a1e52b55f99d (patch)
tree8188e1dcef1e069baa4c7ade2a8c33d08bd4fe26 /main
parent7c28ec2e54bad684b6cecf1bb3ff230256d36651 (diff)
downloadphp-git-45c443576e0257caa0995b862bd0a1e52b55f99d.tar.gz
MFB: Fixed bug #44233 (MSG_PEEK undefined under BeOS R5)
Diffstat (limited to 'main')
-rw-r--r--main/streams/xp_socket.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/streams/xp_socket.c b/main/streams/xp_socket.c
index 2ad13052eb..d40cfefe61 100644
--- a/main/streams/xp_socket.c
+++ b/main/streams/xp_socket.c
@@ -35,6 +35,10 @@
# define MSG_DONTWAIT 0
#endif
+#ifndef MSG_PEEK
+# define MSG_PEEK 0
+#endif
+
php_stream_ops php_stream_generic_socket_ops;
PHPAPI php_stream_ops php_stream_socket_ops;
php_stream_ops php_stream_udp_socket_ops;