loader, asm_offset: define BSD_VISIBLE and fix ifdef bug
authorEleni Maria Stea <elene.mst@gmail.com>
Thu, 4 Nov 2021 10:13:21 +0000 (12:13 +0200)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Thu, 4 Nov 2021 15:47:34 +0000 (09:47 -0600)
commit77f3ea476ec0636c34dfd141e96be64173d96977
treec27de065fb5d4c4552052dbf30401466a7cf9be5
parentbf74db88bd9a8cf20d7ecbdbeb6aefa6e8208498
loader, asm_offset: define BSD_VISIBLE and fix ifdef bug

In vk_loader_platform.h there was a leftover #if defined (__FreeBSD__)
... elif #defined(__FreeBSD__) that needed fixing. After that it was
necessary to define BSD_VISIBLE before including <sys/types.h> required
by <sys/sysctl.h> required by asm_offset and loader CMakeLists.txt had
to be  modified accordingly.
loader/CMakeLists.txt
loader/vk_loader_platform.h