[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Adding battery support on Cygwin
From: |
Ken Brown |
Subject: |
Adding battery support on Cygwin |
Date: |
Fri, 12 Jan 2018 21:33:33 -0500 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 |
The Cygwin-w32 currently supports battery status via the function
w32fns.c:Fw32_battery_status. The X11 and nox builds don't have this
support, and Cygwin lacks the facilities used on unix-like systems to
provide it (/proc/apm, etc.). But it turns out to be easy to compile
and use Fw32_battery_status on all Cygwin builds, simply by pulling it
out of w32fns.c into a new file.
The attached patch does this. OK to push? If so, to which branch?
Ken
0001-Add-battery-support-to-all-Cygwin-builds.patch
Description: Text document
- Adding battery support on Cygwin,
Ken Brown <=