bin: Fix cookie builtin build with curl but no soup
authorColin Walters <walters@verbum.org>
Mon, 8 Jan 2018 14:28:47 +0000 (09:28 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 8 Jan 2018 15:38:07 +0000 (15:38 +0000)
Prep for supporting `--with-curl --without-soup`.

Closes: #1397
Approved by: cgwalters

src/ostree/ot-builtin-remote.c
src/ostree/ot-remote-builtins.h

index dfb07d039b87e5daa10ddbf8d125cc78fc5f2021..b89e8ba38e410cf95de5eb456589c2f30796a100 100644 (file)
@@ -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" },
index ce788524ab084700ce71272be8819b59c5d1d816..60f4165e978337898ff45f94b056a34e0de0d593 100644 (file)
@@ -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);