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

Sascha Wildner swildner at crater.dragonflybsd.org
Sat Jun 6 19:16:24 PDT 2015


commit bb06d795144b04574aa0b5fdb94e95ab77360a1a
Author: Sascha Wildner <saw at online.de>
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(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bb06d795144b04574aa0b5fdb94e95ab77360a1a


-- 
DragonFly BSD source repository


More information about the Commits mailing list