compile libfiber for ARM platform

This commit is contained in:
shuxin   zheng 2019-12-03 13:43:53 +08:00
parent 92265d2abf
commit c57e5e5876
3 changed files with 11 additions and 1 deletions

View File

@ -21,8 +21,8 @@ CFLAGS = -c -g -W \
-DUSE_JMP \
-Wmissing-prototypes \
-Wcast-qual \
-DUSE_FAST_TIME \
-DUSE_FAST_RING \
#-DUSE_FAST_TIME \
#-DDEBUG_MEM \
#-DUSE_VALGRIND \
#-I/usr/local/include

View File

@ -256,4 +256,9 @@ int gettimeofday(struct timeval *tv, struct timezone *tz)
return acl_fiber_gettimeofday(tv, (struct timezone*) tz);
}
# endif /* HOOK_GETTIMEOFDAY */
#else
int acl_fiber_gettimeofday(struct timeval *tv, struct timezone *tz)
{
return gettimeofday(tv, tz);
}
#endif /* USE_FAST_TIME */

View File

@ -72,6 +72,11 @@
#if defined(__linux__)
# include <sys/sendfile.h>
# include <sys/epoll.h>
# if !defined(__aarch64__)
# define USE_FAST_TIME
# endif
#elif defined(__FreeBSD__)
# include <sys/uio.h>
# include <pthread_np.h>