diff options
author | Sven Eden <yamakuzure@gmx.net> | 2017-01-09 05:53:00 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-03-14 10:22:32 +0100 |
commit | 4ebadef69ff96e92122a133cfecadf60816c4fa3 (patch) | |
tree | d7d65cccf110e8b12a4353c0d91db2b0b83f08dc /src/basic/macro.h | |
parent | bd1ce0bdbfc97a958a6c56fe062bed892f08444a (diff) |
Prep v226: Apply missing fixes and changes to src/basic
Diffstat (limited to 'src/basic/macro.h')
-rw-r--r-- | src/basic/macro.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/basic/macro.h b/src/basic/macro.h index 627d768b7..cbc3ca97b 100644 --- a/src/basic/macro.h +++ b/src/basic/macro.h @@ -298,6 +298,9 @@ static inline unsigned long ALIGN_POWER2(unsigned long u) { #define PTR_TO_GID(p) ((gid_t) (((uintptr_t) (p))-1)) #define GID_TO_PTR(u) ((void*) (((uintptr_t) (u))+1)) +#define PTR_TO_PID(p) ((pid_t) ((uintptr_t) p)) +#define PID_TO_PTR(p) ((void*) ((uintptr_t) p)) + #define memzero(x,l) (memset((x), 0, (l))) #define zero(x) (memzero(&(x), sizeof(x))) |