Skip to content

Commit 400f11c

Browse files
Fix usleep prototype
Pulled from: 792a71d
1 parent 9499949 commit 400f11c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

library.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ PHPAPI int usleep(unsigned int useconds);
3636
#define SCORE_DECODE_INT 1
3737
#define SCORE_DECODE_DOUBLE 2
3838

39+
#ifdef PHP_WIN32
40+
# if PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION <= 4
41+
/* This proto is available from 5.5 on only */
42+
PHPAPI int usleep(unsigned int useconds);
43+
# endif
44+
#endif
45+
3946
extern zend_class_entry *redis_ce;
4047
extern zend_class_entry *redis_exception_ce;
4148
extern zend_class_entry *spl_ce_RuntimeException;

0 commit comments

Comments
 (0)