SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,29 @@
--- 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_
+#ifndef MAXSENSORDEVICES
+#define MAXSENSORDEVICES 1024
+#endif
+
#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);
-#if defined(i386) || defined(__i386__)
typedef struct apm_power_info *apm_info_t;
-#endif
int get_entropy_avail(unsigned int *);
int get_entropy_poolsize(unsigned int *);
+
+static int sensor_device;
#endif /*OPENBSD_H_*/