aboutsummaryrefslogtreecommitdiff
path: root/cad/electric/files/patch-src::graph::graphunixx11.c
diff options
context:
space:
mode:
Diffstat (limited to 'cad/electric/files/patch-src::graph::graphunixx11.c')
-rw-r--r--cad/electric/files/patch-src::graph::graphunixx11.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/cad/electric/files/patch-src::graph::graphunixx11.c b/cad/electric/files/patch-src::graph::graphunixx11.c
deleted file mode 100644
index cb008da2ba80..000000000000
--- a/cad/electric/files/patch-src::graph::graphunixx11.c
+++ /dev/null
@@ -1,26 +0,0 @@
---- src/graph/graphunixx11.c.orig Fri Jun 14 20:01:11 2002
-+++ src/graph/graphunixx11.c Thu Sep 19 23:30:14 2002
-@@ -149,6 +149,8 @@
- INTBIG gra_initializetcl(void);
- #endif
-
-+#include <sys/sysctl.h>
-+
- /****** windows ******/
-
- #define WMLEFTBORDER 8 /* size of left border for windows */
-@@ -2889,8 +2891,13 @@
- INTBIG enumprocessors(void)
- {
- INTBIG numproc;
-+ size_t proclen;
-+
-+ proclen = sizeof(numproc);
-+ if ((sysctlbyname("hw.ncpu", &numproc, &proclen, NULL, 0) < 0) ||
-+ (proclen != sizeof(numproc)))
-+ numproc = 1;
-
-- numproc = sysconf(_SC_NPROCESSORS_ONLN);
- return(numproc);
- }
-