Skip to content

Bug #48389: Correct non posix code (fixing FTBFS on GNU/Hurd) #476

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions TSRM/tsrm_config_common.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#ifndef TSRM_CONFIG_COMMON_H
#define TSRM_CONFIG_COMMON_H

#ifndef PATH_MAX
#define PATH_MAX 4096
#endif

#ifndef __CYGWIN__
# if WINNT|WIN32
# define TSRM_WIN32
Expand Down
4 changes: 4 additions & 0 deletions ext/date/lib/parse_tz.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@

/* $Id$ */

#ifndef PATH_MAX
#define PATH_MAX 4096
#endif

#include "timelib.h"

#include <stdio.h>
Expand Down
4 changes: 4 additions & 0 deletions ext/standard/proc_open.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
# define __EXTENSIONS__ 1 /* Solaris: uint */
#endif

#ifndef PATH_MAX
#define PATH_MAX 4096
#endif

#include "php.h"
#include <stdio.h>
#include <ctype.h>
Expand Down
4 changes: 4 additions & 0 deletions main/php.h
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,10 @@ END_EXTERN_C()
/* macros */
#define STR_PRINT(str) ((str)?(str):"")

#ifndef PATH_MAX
#define PATH_MAX 4096
#endif

#ifndef MAXPATHLEN
# ifdef PATH_MAX
# define MAXPATHLEN PATH_MAX
Expand Down