diff options
| author | Zeev Suraski <zeev@php.net> | 1999-04-21 19:01:38 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 1999-04-21 19:01:38 +0000 |
| commit | 751709a469d4b878edb714a158affa8ca6d6abc0 (patch) | |
| tree | b101ee2de589eab1a94de38c38ab96063890e512 /main/php_compat.h | |
| parent | 065636be85aae0602a6255642e031ab62966dd90 (diff) | |
| download | php-git-751709a469d4b878edb714a158affa8ca6d6abc0.tar.gz | |
* Rename php_compat.[ch] to flock_compat.[ch] and move it to ext/standard
* Fix Win32 compilation
Diffstat (limited to 'main/php_compat.h')
| -rw-r--r-- | main/php_compat.h | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/main/php_compat.h b/main/php_compat.h deleted file mode 100644 index 2c4aa3e0bf..0000000000 --- a/main/php_compat.h +++ /dev/null @@ -1,39 +0,0 @@ -#ifndef PHP_COMPAT_H -#define PHP_COMPAT_H - -#if (WIN32|WINNT) & HAVE_BINDLIB -#ifndef WINNT -#define WINNT 1 -#endif -#include "arpa/inet.h" -#include "netdb.h" -#include "arpa/nameser.h" -#include "resolv.h" -#endif - -#if !HAVE_FLOCK - -#define LOCK_SH 1 -#define LOCK_EX 2 -#define LOCK_NB 4 -#define LOCK_UN 8 - -extern PHPAPI int flock(int fd, int operation); - -#endif - -#if WIN32|WINNT - -/* These were in win32/flock.h, dunno if they are really needed - (or maybe break something) */ - -#define fsync _commit -#define ftruncate chsize - -#endif /* WIN32|WINNT */ - -#if !HAVE_INET_ATON -extern PHPAPI int inet_aton(const char *, struct in_addr *); -#endif - -#endif |
