diff options
author | Rasmus Lerdorf <rasmus@php.net> | 2001-01-21 17:29:15 +0000 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 2001-01-21 17:29:15 +0000 |
commit | 83cf6629ec02f98e7ceca3977709f21c1238c910 (patch) | |
tree | 02e925037834502999bf7b0a8595fae28587e0eb /main/php_open_temporary_file.c | |
parent | 3353ad7e6e757f6e7373b8c78fce7d461e2037aa (diff) | |
download | php-git-83cf6629ec02f98e7ceca3977709f21c1238c910.tar.gz |
@BeOS patch from svanegmond@bang.dhs.org modified somewhat by Rasmus
BeOS patch from svanegmond@bang.dhs.org modified somewhat by Rasmus
Diffstat (limited to 'main/php_open_temporary_file.c')
-rw-r--r-- | main/php_open_temporary_file.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/main/php_open_temporary_file.c b/main/php_open_temporary_file.c index 64f9cd8c9b..f4ff9f8271 100644 --- a/main/php_open_temporary_file.c +++ b/main/php_open_temporary_file.c @@ -34,8 +34,10 @@ #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> +#if HAVE_ARPA_INET_H #include <arpa/inet.h> #endif +#endif #ifdef HAVE_SYS_TIME_H #include <sys/time.h> #endif @@ -44,6 +46,10 @@ #include <sys/file.h> #endif +#if !defined(P_tmpdir) +#define P_tmpdir "" +#endif + /* {{{ php_open_temporary_file */ /* Loosely based on a tempnam() implementation by UCLA */ |