1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/science/medit/files/patch-sources_lplib3.c
Thierry Thomas b2503fadf6 Upgrade to 2012.02.05.
Feature safe:	yes
2012-11-22 21:39:32 +00:00

22 lines
432 B
C

--- sources/lplib3.c.orig 2011-03-15 11:22:22.000000000 +0100
+++ sources/lplib3.c 2012-11-22 22:25:15.000000000 +0100
@@ -29,6 +29,10 @@
#include <stdbool.h>
#include <assert.h>
#include <errno.h>
+#ifdef __FreeBSD__
+# include <sys/types.h>
+# include <pmc.h>
+#endif
#include "lplib3.h"
@@ -1244,6 +1248,7 @@
goto f1;
errno = 0;
#ifdef __FreeBSD__
+ int ncpu;
if (maxthreads == 0) {
/*
* Other candidates: