opkg: fix gpg enabled builds and fix one compiler warning
[oweals/opkg-lede.git] / opkg_download.c
index 2f87eec81f850f3ad89f5ac8d9ffe3070d029174..bbd6efef868bf9deab58b6a58e703df96bd807d2 100644 (file)
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    General Public License for more details.
 */
-
+#include "config.h"
 #include <curl/curl.h>
+#ifdef HAVE_GPGME
 #include <gpgme.h>
+#endif
 
 #include "opkg.h"
 #include "opkg_download.h"