os: First check for __GLIBC__ and then for PIPE_OS_BSD
authorAndreas Boll <andreas.boll.dev@gmail.com>
Wed, 11 Sep 2013 12:27:08 +0000 (14:27 +0200)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Thu, 12 Sep 2013 10:35:34 +0000 (12:35 +0200)
commit32637f56a5422b09ad945d21d8e60a8b990b0182
tree392df5baecc895d75361c08b8092dbef90780ab4
parent315f8f17d07403c6c88ee5eadf2d5d85aff26b42
os: First check for __GLIBC__ and then for PIPE_OS_BSD

Fixes FTBFS on kfreebsd-*

Debian GNU/kFreeBSD doesn't provide getprogname() since it uses stdlib.h
from glibc. Instead it provides program_invocation_short_name from glibc.

You can find the same order in src/mesa/drivers/dri/common/xmlconfig.c

Cc: "9.2" <mesa-stable@lists.freedesktop.org>
Tested-by: Julien Cristau <jcristau@debian.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/os/os_process.c