git: <sys/sysctl.h>: Include <sys/lock.h> only for the kernel (unbreaks world).

Sascha Wildner swildner at
Sat Jun 6 19:16:24 PDT 2015

commit bb06d795144b04574aa0b5fdb94e95ab77360a1a
Author: Sascha Wildner <saw at>
Date:   Sun Jun 7 04:16:12 2015 +0200

    <sys/sysctl.h>: Include <sys/lock.h> only for the kernel (unbreaks world).
    The problem was that when userland included <sys/sysctl.h> without
    _KERNEL_STRUCTURES defined, it could later on no longer include
    <sys/lock.h> _with_ _KERNEL_STRUCTURES defined (via <sys/kinfo.h>,
    for example).

Summary of changes:
 sys/sys/sysctl.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list