[BACK]Return to patch-psutil___psutil__bsd.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / sysutils / py-psutil / patches

File: [cvs.NetBSD.org] / pkgsrc / sysutils / py-psutil / patches / patch-psutil___psutil__bsd.c (download)

Revision 1.8, Thu Jun 22 22:01:47 2017 UTC (16 months, 3 weeks ago) by kamil
Branch: MAIN
CVS Tags: pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-, HEAD
Changes since 1.7: +13 -25 lines

Correct build of py-psutil on NetBSD 8.99.1.

Address <sys/user.h> removal fallout on NetBSD.

$NetBSD: patch-psutil___psutil__bsd.c,v 1.8 2017/06/22 22:01:47 kamil Exp $

Don't include <sys/user.h> on every BSD.
It's absent on NetBSD and unused on OpenBSD.

--- psutil/_psutil_bsd.c.orig	2017-03-26 08:09:27.000000000 +0000
+++ psutil/_psutil_bsd.c
@@ -30,7 +30,9 @@
 #include <sys/types.h>
 #include <sys/param.h>
 #include <sys/sysctl.h>
+#if defined(__FreeBSD__) || defined(__DragonFly__)
 #include <sys/user.h>
+#endif
 #include <sys/proc.h>
 #include <sys/file.h>
 #include <sys/socket.h>