aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/hplip-fix-bug-1898438.patch
blob: 7c095f9b2a7e98a2a29623d40162f5a7af5402cd (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
From: Tobias Geerinckx-Rice <me@tobias.gr>
Date: Sun, 04 Oct 2020 13:28:49 +0200
Subject: [PATCH] gnu: hplip: Fix non-network builds (bug #1898438)

Reported as <https://bugs.launchpad.net/hplip/+bug/1898438>.

diff -Naur a/scan/sane/hpaio.c b/scan/sane/hpaio.c
--- a/scan/sane/hpaio.c	1970-01-01 01:00:01.000000000 +0100
+++ b/scan/sane/hpaio.c	2020-10-04 13:26:34.665244052 +0200
@@ -36,7 +36,9 @@
 #include <string.h>
 #include <cups/cups.h>
 #include "hpmud.h"
+#ifdef HAVE_LIBNETSNMP
 #include "avahiDiscovery.h"
+#endif
 #include "hp_ipp.h"
 #include "soap.h"
 #include "soapht.h"