]> granicus.if.org Git - procps-ng/commit
ps/output.c: include <dlfcn.h> only when necessary
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 7 Aug 2016 09:08:26 +0000 (11:08 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 7 Aug 2016 09:08:26 +0000 (11:08 +0200)
commit4fc9a348026a945aec8eddffc7613de9cb10b10c
tree95c980b05440005a5a1dbf244f112a524afbb7fe
parentb4fdb27a056b707181565d65866c6104073b67b1
ps/output.c: include <dlfcn.h> only when necessary

dlopen() functionality is only used when SELinux support is enabled, so
<dlfcn.h> only needs to be included when ENABLE_LIBSELINUX is
defined. This fixes the build in configurations where <dlfcn.h> is not
available.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
ps/output.c