diff options
author | wiggin15 <wiggin15@yahoo.com> | 2017-09-26 14:52:42 +0300 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2017-09-26 19:52:42 +0800 |
commit | 1ebe625e5aa21b33e9de5652c305d1d0a2147059 (patch) | |
tree | 79448f6cc3df6d892c2fe22ead726b2a94a52111 /psutil/_psutil_posix.c | |
parent | 730e0fbba6a2ef4a01a5a67759e15dad5613d3a9 (diff) | |
download | psutil-1ebe625e5aa21b33e9de5652c305d1d0a2147059.tar.gz |
AIX support (#1123)
* AIX support
* AIX support
* AIX support
* AIX support - use get_procfs_path() instead of /proc
* AIX support - group sections like in other modules
* AIX support
* AIX support
* AIX support
* AIX support - remove unnecessary dict copy
Diffstat (limited to 'psutil/_psutil_posix.c')
-rw-r--r-- | psutil/_psutil_posix.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/psutil/_psutil_posix.c b/psutil/_psutil_posix.c index 80c1b8cb..5268b721 100644 --- a/psutil/_psutil_posix.c +++ b/psutil/_psutil_posix.c @@ -18,6 +18,8 @@ #ifdef PSUTIL_SUNOS10 #include "arch/solaris/v10/ifaddrs.h" +#elif PSUTIL_AIX + #include "arch/aix/ifaddrs.h" #else #include <ifaddrs.h> #endif @@ -35,6 +37,8 @@ #elif defined(PSUTIL_SUNOS) #include <netdb.h> #include <sys/sockio.h> +#elif defined(PSUTIL_AIX) + #include <netdb.h> #endif #include "_psutil_common.h" @@ -688,7 +692,7 @@ void init_psutil_posix(void) PyObject *module = Py_InitModule("_psutil_posix", PsutilMethods); #endif -#if defined(PSUTIL_BSD) || defined(PSUTIL_OSX) || defined(PSUTIL_SUNOS) +#if defined(PSUTIL_BSD) || defined(PSUTIL_OSX) || defined(PSUTIL_SUNOS) || defined(PSUTIL_AIX) PyModule_AddIntConstant(module, "AF_LINK", AF_LINK); #endif |