X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=liblttng-ust%2Flttng-context-vpid.c;h=53fb314b8c0da1bdf353f00c59c953879b4ed150;hb=6d9b54d845b08d54d3f483f1130b499516588db3;hp=7d8091be0351052e3db95602dd839bd7a5d95406;hpb=53569322d40ed45abe0368ddb08eb4a2738afc37;p=deliverable%2Flttng-ust.git diff --git a/liblttng-ust/lttng-context-vpid.c b/liblttng-ust/lttng-context-vpid.c index 7d8091be..53fb314b 100644 --- a/liblttng-ust/lttng-context-vpid.c +++ b/liblttng-ust/lttng-context-vpid.c @@ -20,23 +20,13 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#define _LGPL_SOURCE #include #include #include #include #include -#ifdef __linux__ -static inline -pid_t wrapper_getpid(void) -{ - return getpid(); -} - -void lttng_context_vpid_reset(void) -{ -} -#else /* * We cache the result to ensure we don't trigger a system call for * each event. @@ -59,7 +49,6 @@ void lttng_context_vpid_reset(void) { cached_vpid = 0; } -#endif static size_t vpid_get_size(struct lttng_ctx_field *field, size_t offset)