2011-04-27 08:55:10 -04:00
|
|
|
$OpenBSD: patch-src_openbsd_h,v 1.4 2011/04/27 12:55:11 dcoppa Exp $
|
|
|
|
--- src/openbsd.h.orig Tue Oct 5 23:29:36 2010
|
|
|
|
+++ src/openbsd.h Tue Apr 19 18:44:53 2011
|
|
|
|
@@ -3,7 +3,12 @@
|
|
|
|
#ifndef OPENBSD_H_
|
|
|
|
#define OPENBSD_H_
|
2010-04-27 16:56:11 -04:00
|
|
|
|
|
|
|
+#ifndef MAXSENSORDEVICES
|
|
|
|
+#define MAXSENSORDEVICES 1024
|
|
|
|
+#endif
|
2011-04-27 08:55:10 -04:00
|
|
|
+
|
|
|
|
#include "common.h"
|
|
|
|
+#include "temphelper.h"
|
|
|
|
#include <sys/param.h>
|
|
|
|
#include <sys/sysctl.h>
|
|
|
|
#include <sys/sensors.h>
|
|
|
|
@@ -16,11 +21,11 @@ void print_obsd_sensors_volt(struct text_object *, cha
|
|
|
|
void get_obsd_vendor(char *buf, size_t client_buffer_size);
|
|
|
|
void get_obsd_product(char *buf, size_t client_buffer_size);
|
|
|
|
|
2010-04-27 16:56:11 -04:00
|
|
|
-#if defined(i386) || defined(__i386__)
|
2011-04-27 08:55:10 -04:00
|
|
|
typedef struct apm_power_info *apm_info_t;
|
2010-04-27 16:56:11 -04:00
|
|
|
-#endif
|
2009-05-10 15:07:47 -04:00
|
|
|
|
2011-04-27 08:55:10 -04:00
|
|
|
int get_entropy_avail(unsigned int *);
|
|
|
|
int get_entropy_poolsize(unsigned int *);
|
|
|
|
+
|
|
|
|
+static int sensor_device;
|
|
|
|
|
|
|
|
#endif /*OPENBSD_H_*/
|