ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV/EV.xs
(Generate patch)

Comparing EV/EV.xs (file contents):
Revision 1.171 by root, Mon Jul 13 19:47:53 2015 UTC vs.
Revision 1.173 by root, Tue Jun 25 23:57:23 2019 UTC

17 return s_fileno (fh, 0); 17 return s_fileno (fh, 0);
18} 18}
19 19
20#ifndef GvCV_set 20#ifndef GvCV_set
21# define GvCV_set(gv,cv) GvCV (gv) = cv 21# define GvCV_set(gv,cv) GvCV (gv) = cv
22#endif
23
24#if EV_ENABLE_ASSERTIONS
25# undef NDEBUG
26# include <assert.h>
22#endif 27#endif
23 28
24#define EV_STANDALONE 1 29#define EV_STANDALONE 1
25#define EV_PROTOTYPES 1 30#define EV_PROTOTYPES 1
26#define EV_USE_NANOSLEEP EV_USE_MONOTONIC 31#define EV_USE_NANOSLEEP EV_USE_MONOTONIC
534 539
535 sv_setiv (sv, (IV)&evapi); 540 sv_setiv (sv, (IV)&evapi);
536 SvREADONLY_on (sv); 541 SvREADONLY_on (sv);
537 } 542 }
538#if !defined _WIN32 && !defined _MINIX && !EV_NO_ATFORK 543#if !defined _WIN32 && !defined _MINIX && !EV_NO_ATFORK
539#if __linux 544/* unfortunately, musl neither implements the linux standard base,
545/* nor makes itself detectable via macros. yeah, right... */
546#if __linux && (__GLIBC__ || __UCLIBC__)
540 int __register_atfork(void (*prepare) (void), void (*parent) (void), void (*child) (void), void * __dso_handle); 547 int __register_atfork(void (*prepare) (void), void (*parent) (void), void (*child) (void), void * __dso_handle);
541 __register_atfork (0, 0, default_fork, 0); 548 __register_atfork (0, 0, default_fork, 0);
542#else 549#else
543 pthread_atfork (0, 0, default_fork); 550 pthread_atfork (0, 0, default_fork);
544#endif 551#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines