summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Wimpress <[email protected]>2019-10-04 11:22:37 +0100
committerraveit65 <[email protected]>2020-06-11 15:42:34 +0200
commit055dbf6e53c9f0326fb204f0a1243ab962ed59df (patch)
tree358414d6cfc8485c767e5aace277911775ff6d3b
parent7223af5f717614d9a15bf343feda5ac154294478 (diff)
downloadmate-sensors-applet-055dbf6e53c9f0326fb204f0a1243ab962ed59df.tar.bz2
mate-sensors-applet-055dbf6e53c9f0326fb204f0a1243ab962ed59df.tar.xz
sonypi-plugin.c: Make sonypi plugin portable to GNU/Hurd
Taken from a downstream Debian patch.
-rw-r--r--plugins/sonypi/sonypi-plugin.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/sonypi/sonypi-plugin.c b/plugins/sonypi/sonypi-plugin.c
index ca5987a..8430d5f 100644
--- a/plugins/sonypi/sonypi-plugin.c
+++ b/plugins/sonypi/sonypi-plugin.c
@@ -36,12 +36,14 @@
#include <glib/gi18n.h>
#include "sonypi-plugin.h"
+#include <stdint.h>
+
const gchar *plugin_name = "sonypi";
/* These values are taken from spicctrl by Stelian Pop */
#define SONYPI_DEV "/dev/sonypi"
-#define SONYPI_IOCGFAN _IOR('v', 10, guint8)
-#define SONYPI_IOCGTEMP _IOR('v', 12, guint8)
+#define SONYPI_IOCGFAN _IOR('v', 10, uint8_t)
+#define SONYPI_IOCGTEMP _IOR('v', 12, uint8_t)
#define SONYPI_TEMP "sonypi_temp"
enum {