Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c452316

Browse files
committed
Better fix usleep
1 parent dfe1d9d commit c452316

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
/* This proto is available from 5.5 on only */
3535
PHP_REDIS_API int usleep(unsigned int useconds);
3636
# endif
37+
# if PHP_MAJOR_VERSION >= 7
38+
PHP_REDIS_API int usleep(unsigned int useconds);
39+
# endif
3740
#endif
3841

3942
extern zend_class_entry *redis_ce;

redis_commands.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
};
1212
int gettimeofday(struct timeval *tv, struct timezone *tz);
1313
# endif
14-
# if defined(HAVE_USLEEP)
15-
int usleep(unsigned int useconds);
16-
# endif
1714
#endif
1815

1916
#include "common.h"

0 commit comments

Comments
 (0)