summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2018-01-08 09:28:47 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-01-08 15:38:07 +0000
commitc8d9da8d96d06b60e4760094695b125121f95868 (patch)
tree8cfee5d8d5484603c25a0b4878d2a6b6a426607d
parent3b9304b5d76968c92378b708a76239fa5f08dcf9 (diff)
downloadostree-c8d9da8d96d06b60e4760094695b125121f95868.tar.gz
bin: Fix cookie builtin build with curl but no soup
Prep for supporting `--with-curl --without-soup`. Closes: #1397 Approved by: cgwalters
-rw-r--r--src/ostree/ot-builtin-remote.c2
-rw-r--r--src/ostree/ot-remote-builtins.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ostree/ot-builtin-remote.c b/src/ostree/ot-builtin-remote.c
index dfb07d03..b89e8ba3 100644
--- a/src/ostree/ot-builtin-remote.c
+++ b/src/ostree/ot-builtin-remote.c
@@ -41,7 +41,7 @@ static OstreeCommand remote_subcommands[] = {
{ "gpg-import", OSTREE_BUILTIN_FLAG_NONE,
ot_remote_builtin_gpg_import,
"Import GPG keys" },
-#ifdef HAVE_LIBSOUP
+#ifdef HAVE_LIBCURL_OR_LIBSOUP
{ "add-cookie", OSTREE_BUILTIN_FLAG_NONE,
ot_remote_builtin_add_cookie,
"Add a cookie to remote" },
diff --git a/src/ostree/ot-remote-builtins.h b/src/ostree/ot-remote-builtins.h
index ce788524..60f4165e 100644
--- a/src/ostree/ot-remote-builtins.h
+++ b/src/ostree/ot-remote-builtins.h
@@ -31,7 +31,7 @@ BUILTINPROTO(add);
BUILTINPROTO(delete);
BUILTINPROTO(gpg_import);
BUILTINPROTO(list);
-#ifdef HAVE_LIBSOUP
+#ifdef HAVE_LIBCURL_OR_LIBSOUP
BUILTINPROTO(add_cookie);
BUILTINPROTO(list_cookies);
BUILTINPROTO(delete_cookie);