git: kernel/apple_gmux: Fix compilation when VGA_SWITCHEROO is in the config.

Sascha Wildner swildner at crater.dragonflybsd.org
Mon May 8 21:04:38 PDT 2017


commit 7d54f308e85ed3cfa2fe53b57cb006c734843aa1
Author: Sascha Wildner <saw at online.de>
Date:   Tue May 9 06:04:26 2017 +0200

    kernel/apple_gmux: Fix compilation when VGA_SWITCHEROO is in the config.
    
    We would get a redefinition warning/error, because opt_drm.h has
    VGA_SWITCHEROO defined to 1 in this case, which is not the same as
    merely defining it. To be on the safe side, define to 1 here, too,
    and also add an #ifndef and a comment.
    
    Discussed-with: Peeter Must <karu.pruun at gmail.com>

Summary of changes:
 sys/gnu/dev/misc/apple_gmux/apple-gmux.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7d54f308e85ed3cfa2fe53b57cb006c734843aa1


-- 
DragonFly BSD source repository


More information about the Commits mailing list