home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 15 / AACD15.ISO / AACD / Magazine / HomeAutomation / Apache / include / php / ext / standard / flock_compat.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-06  |  546 b   |  30 lines

  1. #ifndef _FLOCK_COMPAT_H
  2. #define _FLOCK_COMPAT_H
  3.  
  4. #ifndef HAVE_FLOCK
  5. #    define LOCK_SH 1
  6. #    define LOCK_EX 2
  7. #    define LOCK_NB 4
  8. #    define LOCK_UN 8
  9. int flock(int fd, int operation);
  10. #endif
  11.  
  12. #ifdef PHP_WIN32
  13. #define EWOULDBLOCK WSAEWOULDBLOCK
  14. #    define fsync _commit
  15. #    define ftruncate(a,b) chsize(a,b)
  16. #endif /* defined(PHP_WIN32) */
  17.  
  18. #if !HAVE_INET_ATON
  19. #if HAVE_NETINET_IN_H
  20. #include <netinet/in.h>
  21. #endif
  22. #if HAVE_ARPA_INET_H
  23. #include <arpa/inet.h>
  24. #endif
  25.  
  26. extern int inet_aton(const char *, struct in_addr *);
  27. #endif
  28.  
  29. #endif    /* _FLOCK_COMPAT_H */
  30.