aubinator: only use program_invocation_short_name with glibc/cygwin
authorJonathan Gray <jsg@jsg.id.au>
Thu, 1 Sep 2016 17:12:26 +0000 (03:12 +1000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 8 Sep 2016 17:37:02 +0000 (18:37 +0100)
commitd50c56f8687036fdb345d6def3262fd0929a04ad
tree8c9ce72ece7c88d7398c990cf6fa0077e681d0d8
parent2d3ebb474c3056610f19c44e5c62d42c2de6b31b
aubinator: only use program_invocation_short_name with glibc/cygwin

program_invocation_short_name is a gnu extension.  Limit use of it
to glibc and cygwin and otherwise use getprogname() which is available
on BSD and OS X.

Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/intel/tools/aubinator.c