diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2016-01-03 17:14:14 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2016-01-10 21:36:31 -0600 |
commit | e3cee0ccd7e3341c9e5464d740fe2afeff39d8f4 (patch) | |
tree | 11a6fc3aa3e2c0f7a129218f9e85ee16d4f42145 /desktop/icewm/patches/icewm-1.3.7-thermal.patch | |
parent | de47a0f89562601b6b7fc4b6c110c58af606ebb8 (diff) |
desktop/icewm: Updated for version 1.3.12 (new upstream)
Thanks to _gin on LQ for the heads-up on this.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'desktop/icewm/patches/icewm-1.3.7-thermal.patch')
-rw-r--r-- | desktop/icewm/patches/icewm-1.3.7-thermal.patch | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/desktop/icewm/patches/icewm-1.3.7-thermal.patch b/desktop/icewm/patches/icewm-1.3.7-thermal.patch deleted file mode 100644 index f6b2cf71f0f5f..0000000000000 --- a/desktop/icewm/patches/icewm-1.3.7-thermal.patch +++ /dev/null @@ -1,41 +0,0 @@ -diff -uprN a/src/acpustatus.cc b/src/acpustatus.cc ---- a/src/acpustatus.cc 2010-10-31 15:09:36.000000000 +0100 -+++ b/src/acpustatus.cc 2013-01-17 21:12:19.085715083 +0100 -@@ -315,6 +315,37 @@ int CPUStatus::getAcpiTemp(char *tempbuf - } - closedir(dir); - } -+ else if ((dir = opendir("/sys/class/thermal")) != NULL) { -+ struct dirent *de; -+ -+ while ((de = readdir(dir)) != NULL) { -+ -+ int fd, seglen; -+ -+ if (strcmp(de->d_name, ".") == 0 || strcmp(de->d_name, "..") == 0) -+ continue; -+ -+ sprintf(namebuf, "/sys/class/thermal/%s/temp", de->d_name); -+ fd = open(namebuf, O_RDONLY); -+ if (fd != -1) { -+ int len = read(fd, buf, sizeof(buf) - 1); -+ buf[len - 4] = '\0'; -+ seglen = strlen(buf) + 4; -+ if (retbuflen + seglen >= buflen) { -+ retbuflen = -retbuflen; -+ close(fd); -+ closedir(dir); -+ break; -+ } -+ retbuflen += seglen; -+ strcat(tempbuf, " "); -+ strncat(tempbuf, buf, seglen); -+ strcat(tempbuf, " C"); -+ close(fd); -+ } -+ } -+ closedir(dir); -+ } - return retbuflen; - } - |