diff options
author | Michal Privoznik <mprivozn@redhat.com> | 2019-08-09 10:32:15 +0200 |
---|---|---|
committer | Michal Privoznik <mprivozn@redhat.com> | 2019-08-09 12:17:19 +0200 |
commit | fd21db659d5aafa99ce1e324a3e08eb43c74c5d1 (patch) | |
tree | 9ba7da4df4a86bf8c60ab30a4e3ea2486054ba0c /tools/nss | |
parent | 8be0ab638d5d89aee6a7e60f04642fbab851c46a (diff) | |
download | libvirt-fd21db659d5aafa99ce1e324a3e08eb43c74c5d1.tar.gz |
nss: Include stdio.h and define NULLSTR when debugging is enabled
The NSS module has a compile time option which when enabled makes
ERROR() and DEBUG() print messages onto stderr. But now that the
module no longer links with libvirt, we need to include stdio.h
and define NULLSTR().
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'tools/nss')
-rw-r--r-- | tools/nss/libvirt_nss.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/nss/libvirt_nss.h b/tools/nss/libvirt_nss.h index 63e1bf0af5..ee6c971d3d 100644 --- a/tools/nss/libvirt_nss.h +++ b/tools/nss/libvirt_nss.h @@ -33,6 +33,8 @@ #if 0 # include <errno.h> +# include <stdio.h> +# define NULLSTR(s) ((s) ? (s) : "<null>") # define ERROR(...) \ do { \ char ebuf[1024]; \ |