1. 17 1月, 2019 3 次提交
  2. 16 1月, 2019 4 次提交
  3. 15 1月, 2019 4 次提交
  4. 14 1月, 2019 2 次提交
  5. 12 1月, 2019 1 次提交
  6. 11 1月, 2019 4 次提交
  7. 10 1月, 2019 12 次提交
  8. 09 1月, 2019 8 次提交
  9. 08 1月, 2019 2 次提交
    • E
      examples: Avoid gnulib, have standalone examples · acf522e8
      Eric Blake 提交于
      Commit 0c6ad476 updated gnulib, which rearranged some of the
      conditions in gnulib wrapper headers such that compilation
      started failing on BSD systems when the normal system <unistd.h>
      tried to include another system header but instead got a
      gnulib wrapper header in an incomplete state; this is because
      gnulib headers only work if <config.h> is included first.
      
      Commit b6f78259 papered over the symptoms of that by including
      <config.h> in all the examples.  But this logic is backwards -
      if our examples are truly meant to be stand-alone, they should
      NOT depend on how libvirt was configured, and should NOT
      depend on the gnulib fixes for system quirks.  In particular,
      if an example does not need to link against libgnulib.la,
      then it also does not need to use -Ignulib in its compile
      flags, and likewise does not need to include <config.h> since
      none of the gnulib wrapper headers should be interfering.
      
      So, revert (most of) b6f78259 (except for the bogus pre-patch
      use of "config.h" in admin/logging.c: if config.h is included,
      it should be via <> rather than "", and must be before any
      system headers); then additionally nuke all mention of
      <config.h>, -Ignulib, and -llibgnu.la, making all of the
      examples truly standalone.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Acked-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      acf522e8
    • E
      examples: Drop event-test.c dependency on gnulib <verify.h> · 6933ebc4
      Eric Blake 提交于
      Pulling in gnulib just for the <verify.h> header is rather
      expensive, especially since that header does not require us
      to link against gnulib.  It's better to make the event-test
      example be standalone by just open-coding a more limited form
      of a verify() macro that depends on modern gcc (we have enough
      CI coverage that even though the verify is now a no-op in
      older setups, we will still notice if we fail to add an event
      - as a quick test, I was still able to provoke a compile
      failure on Fedora 29 when deleting a line from domainEvents).
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Acked-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      6933ebc4