util/build-id: define ElfW and NT_GNU_BUILD_ID if needed
authorJonathan Gray <jsg@jsg.id.au>
Sat, 18 Feb 2017 07:56:58 +0000 (18:56 +1100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 20 Feb 2017 16:39:24 +0000 (16:39 +0000)
commita042465c218eaed098d505e0a2e78508b554fc67
treea73d53f434e030a46f32b62e1e25d5c2f7070748
parent41b5620492d0a050cbed4c94486ef8d8a190c445
util/build-id: define ElfW and NT_GNU_BUILD_ID if needed

Define ElfW() and NT_GNU_BUILD_ID if needed as these defines are not
present on at least OpenBSD and FreeBSD.  Fixes the build on OpenBSD.

Fixes: d4fa083e11f ("util: Add utility build-id code.")
Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/util/build_id.c