svn commit: r232044 - projects/pf/head/sys/sys
Gleb Smirnoff
glebius at FreeBSD.org
Thu Feb 23 10:19:25 UTC 2012
Author: glebius
Date: Thu Feb 23 10:19:24 2012
New Revision: 232044
URL: http://svn.freebsd.org/changeset/base/232044
Log:
Expose NetBSD/OpenBSD compat defines to kernel code, too.
Modified:
projects/pf/head/sys/sys/time.h
Modified: projects/pf/head/sys/sys/time.h
==============================================================================
--- projects/pf/head/sys/sys/time.h Thu Feb 23 10:18:28 2012 (r232043)
+++ projects/pf/head/sys/sys/time.h Thu Feb 23 10:19:24 2012 (r232044)
@@ -199,8 +199,7 @@ timeval2bintime(const struct timeval *tv
#endif /* _KERNEL */
-#ifndef _KERNEL /* NetBSD/OpenBSD compatible interfaces */
-
+/* NetBSD/OpenBSD compatible interfaces. */
#define timerclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0)
#define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
#define timercmp(tvp, uvp, cmp) \
@@ -225,7 +224,6 @@ timeval2bintime(const struct timeval *tv
(vvp)->tv_usec += 1000000; \
} \
} while (0)
-#endif
/*
* Names of the interval timers, and structure
More information about the svn-src-projects
mailing list