diff options
Diffstat (limited to 'sys/netinet/sctp_constants.h')
-rw-r--r-- | sys/netinet/sctp_constants.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/sctp_constants.h b/sys/netinet/sctp_constants.h index 9f628b8..75c9839 100644 --- a/sys/netinet/sctp_constants.h +++ b/sys/netinet/sctp_constants.h @@ -1070,6 +1070,7 @@ __FBSDID("$FreeBSD$"); #define SCTP_GETTIME_TIMEVAL(x) (getmicrouptime(x)) #define SCTP_GETPTIME_TIMEVAL(x) (microuptime(x)) +#endif /*#if defined(__FreeBSD__) || defined(__APPLE__)*/ /*#define SCTP_GETTIME_TIMEVAL(x) { \*/ /* (x)->tv_sec = ticks / 1000; \*/ @@ -1080,6 +1081,7 @@ __FBSDID("$FreeBSD$"); /*#define SCTP_GETTIME_TIMEVAL(x) (microtime(x))*/ /*#endif __FreeBSD__ */ +#if defined(_KERNEL) || defined(__Userspace__) #define sctp_sowwakeup(inp, so) \ do { \ if (inp->sctp_flags & SCTP_PCB_FLAGS_DONT_WAKE) { \ @@ -1118,5 +1120,5 @@ do { \ } \ } while (0) -#endif /* _KERNEL */ +#endif /* _KERNEL || __Userspace__ */ #endif |