patch-src_openbsd_h 838 B

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