summaryrefslogtreecommitdiff
path: root/psutil/_psutil_bsd.c
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2017-05-12 20:07:59 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2017-05-12 20:07:59 +0200
commit33db0e996863ec5c044a8eb10404401bba017570 (patch)
tree3584572a59d9263a555ac8471ab1eb2e7c3b7e55 /psutil/_psutil_bsd.c
parent976ac81375a88274e6b6b7bb0aed4cccb2facd46 (diff)
downloadpsutil-33db0e996863ec5c044a8eb10404401bba017570.tar.gz
fix compilation err on netbsd
Diffstat (limited to 'psutil/_psutil_bsd.c')
-rw-r--r--psutil/_psutil_bsd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/psutil/_psutil_bsd.c b/psutil/_psutil_bsd.c
index 258f0376..99fccb72 100644
--- a/psutil/_psutil_bsd.c
+++ b/psutil/_psutil_bsd.c
@@ -938,11 +938,12 @@ PsutilMethods[] = {
#endif
#if defined(PSUTIL_FREEBSD) || defined(PSUTIL_NETBSD)
- {"proc_exe", psutil_proc_exe, METH_VARARGS,
- "Return process pathname executable"},
{"proc_num_threads", psutil_proc_num_threads, METH_VARARGS,
"Return number of threads used by process"},
+#endif
#if defined(PSUTIL_FREEBSD)
+ {"proc_exe", psutil_proc_exe, METH_VARARGS,
+ "Return process pathname executable"},
{"proc_memory_maps", psutil_proc_memory_maps, METH_VARARGS,
"Return a list of tuples for every process's memory map"},
{"proc_cpu_affinity_get", psutil_proc_cpu_affinity_get, METH_VARARGS,
@@ -952,7 +953,6 @@ PsutilMethods[] = {
{"cpu_count_phys", psutil_cpu_count_phys, METH_VARARGS,
"Return an XML string to determine the number physical CPUs."},
#endif
-#endif
// --- system-related functions