kernel/apple_gmux: Fix compilation when VGA_SWITCHEROO is in the config.
commit7d54f308e85ed3cfa2fe53b57cb006c734843aa1
authorSascha Wildner <saw@online.de>
Tue, 9 May 2017 04:04:26 +0000 (9 06:04 +0200)
committerSascha Wildner <saw@online.de>
Tue, 9 May 2017 04:04:26 +0000 (9 06:04 +0200)
treeafa2dd0226be3d7b2f54c93d35d0c1b0e5f422d2
parentca5cd43ab236929d9c8f8ce22cd0d9d883637b28
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@gmail.com>
sys/gnu/dev/misc/apple_gmux/apple-gmux.c