opnsense-ports/x11/fbpanel/files/patch-plugins__chart__chart.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

16 lines
399 B
C

--- ./plugins/chart/chart.c.orig 2010-05-02 02:13:47.000000000 -0700
+++ ./plugins/chart/chart.c 2010-11-17 11:06:07.000000000 -0800
@@ -24,7 +24,13 @@
#include <string.h>
#include <sys/time.h>
#include <time.h>
+#ifdef __FreeBSD__
+# include <sys/types.h>
+# include <sys/resource.h>
+# include <sys/sysctl.h>
+#else
#include <sys/sysinfo.h>
+#endif
#include <stdlib.h>
#include "plugin.h"