From: Michal Privoznik Date: Fri, 9 Aug 2019 08:32:15 +0000 (+0200) Subject: nss: Include stdio.h and define NULLSTR when debugging is enabled X-Git-Tag: v5.7.0-rc1~313 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd21db659d5aafa99ce1e324a3e08eb43c74c5d1;p=thirdparty%2Flibvirt.git 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 Reviewed-by: Daniel P. Berrangé --- 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 +# include +# define NULLSTR(s) ((s) ? (s) : "") # define ERROR(...) \ do { \ char ebuf[1024]; \