diff options
author | OBATA Akio <[email protected]> | 2019-04-06 16:49:26 +0900 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2019-08-18 15:36:50 +0200 |
commit | 4741832142e091d641fb8a90607b4595accb905d (patch) | |
tree | 31f31b6389635adc523c7a33f873a9562e1adadb /kcontrol/tdefontinst | |
parent | 0aaebc24cd00c9dd833c16dd14d1814948baac38 (diff) | |
download | tdebase-4741832142e091d641fb8a90607b4595accb905d.tar.gz tdebase-4741832142e091d641fb8a90607b4595accb905d.zip |
Revive NetBSD support
Catch up to TDE and OS changes
Signed-off-by: OBATA Akio <[email protected]>
(cherry picked from commit 2a88ec3c02ab46c8b816cfa348ea53075f57a59c)
Diffstat (limited to 'kcontrol/tdefontinst')
-rw-r--r-- | kcontrol/tdefontinst/tdefontinst/GetPid.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kcontrol/tdefontinst/tdefontinst/GetPid.c b/kcontrol/tdefontinst/tdefontinst/GetPid.c index 1a633a76b..e4159f40a 100644 --- a/kcontrol/tdefontinst/tdefontinst/GetPid.c +++ b/kcontrol/tdefontinst/tdefontinst/GetPid.c @@ -28,6 +28,10 @@ //////////////////////////////////////////////////////////////////////////////// */ +#ifdef __NetBSD__ +#define _KMEMUSER +#endif + #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -173,7 +177,9 @@ unsigned int kfi_getPid(const char *proc, unsigned int ppid) #endif #include <sys/sysctl.h> #include <sys/time.h> +#if defined(__FreeBSD__) || defined(__DragonFly__) #include <sys/user.h> +#endif #include <unistd.h> unsigned int kfi_getPid(const char *proc, unsigned int ppid) { |