opnsense-ports/sysutils/conky/files/patch-src_bsdapm.cc
Franco Fichtner 6190dcb3a0 */*: sync with upstream
Taken from: HardenedBSD
2018-03-24 15:51:01 +01:00

18 lines
477 B
C++

--- src/bsdapm.cc.orig 2016-10-04 07:49:19 UTC
+++ src/bsdapm.cc
@@ -27,6 +27,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
+#if (defined(__FreeBSD__) || defined(__FreeBSD_kernel__) \
+ || defined(__DragonFly__) \
+ || defined(__OpenBSD__)) && (defined(i386) || defined(__i386__))
#include "config.h"
#include "conky.h"
#include "text_object.h"
@@ -208,3 +212,4 @@ void print_apm_battery_time(struct text_
}
#endif
}
+#endif