chiark / gitweb /
common: Avoid warning about implicit declaration of gnupg_fd_valid.
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Wed, 8 Feb 2017 17:05:08 +0000 (12:05 -0500)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 18 Sep 2017 20:41:12 +0000 (21:41 +0100)
* common/logging.c: Add #include "sysutils.h".

--

Without this, we see:

logging.c:573:9: warning: implicit declaration of function \
  ‘gnupg_fd_valid’ [-Wimplicit-function-declaration]
   if (! gnupg_fd_valid (fd))
         ^~~~~~~~~~~~~~

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
(cherry picked from commit 8810314e377a9cb6612150a57cf99260ed0bb9f6)

Gbp-Pq: Name 0033-common-Avoid-warning-about-implicit-declaration-of-g.patch

common/logging.c

index ac130535c497f38be6c419d56850ecd31d84f799..670affb125a458412ba59aaaff9a7ce9c3c8e79a 100644 (file)
@@ -61,6 +61,7 @@
 #include "i18n.h"
 #include "common-defs.h"
 #include "logging.h"
+#include "sysutils.h"
 
 #ifdef HAVE_W32_SYSTEM
 # define S_IRGRP S_IRUSR