Skip to content

Commit 70a6992

Browse files
author
Derick Rethans
committed
Make Xdebug compile on Solaris/OpenSolaris/OpenIndiana again.
1 parent 0b5f47d commit 70a6992

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

usefulstuff.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
#include "ext/standard/flock_compat.h"
4141
#include "main/php_ini.h"
4242

43+
#ifndef NAME_MAX
44+
# define NAME_MAX (MAXNAMELEN-1)
45+
#endif
46+
4347
#define READ_BUFFER_SIZE 128
4448

4549
char* xdebug_fd_read_line_delim(int socket, fd_buf *context, int type, unsigned char delim, int *length)

0 commit comments

Comments
 (0)