wmbattery: Avoid redefinition of apm_read/apm_exists in *BSD.
commitafdfdc07ebba81a6f74515fc3dcb59a391fe9ab9
authorDoug Torrance <dtorrance@monmouthcollege.edu>
Fri, 20 Feb 2015 05:34:20 +0000 (19 23:34 -0600)
committerCarlos R. Mafra <crmafra@gmail.com>
Fri, 20 Feb 2015 16:59:53 +0000 (20 16:59 +0000)
treed74e35b959b1752d5f0c78216be5582fd0cf9c9d
parent535b83d232782516be879497e7273a3f19543295
wmbattery: Avoid redefinition of apm_read/apm_exists in *BSD.

The two functions are defined if the BSD-specific apm headers are found and
if libapm is not found.  Both of these conditions will be true on BSD
systems, so we use #elif instead of the separate #if statements.
wmbattery/wmbattery.c