mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-11-30 02:47:56 +08:00
compile libfiber for ARM platform
This commit is contained in:
parent
92265d2abf
commit
c57e5e5876
@ -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
|
||||
|
@ -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 */
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user