]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
build: skip virportallocatortest on cygwin
authorEric Blake <eblake@redhat.com>
Wed, 26 Feb 2014 20:30:46 +0000 (13:30 -0700)
committerEric Blake <eblake@redhat.com>
Wed, 26 Feb 2014 20:30:46 +0000 (13:30 -0700)
Cygwin supports <dlfcn.h> and even has limited LD_PRELOAD
capabilities; but because it does not use ELF binaries it
cannot support RTLD_NEXT lookups.

  CC       libvirportallocatormock_la-virportallocatortest.lo
virportallocatortest.c: In function 'init_syms':
virportallocatortest.c:47:24: error: 'RTLD_NEXT' undeclared (first use in this function)
     realsocket = dlsym(RTLD_NEXT, "socket");

* tests/virportallocatortest.c: Also require RTLD_NEXT.

Signed-off-by: Eric Blake <eblake@redhat.com>
tests/virportallocatortest.c

index 34843e314d1979cafc902b886b9b8fd5d19f3a80..5a93dad3fbbadff77fdf7ad5b73ce51b793ea227 100644 (file)
@@ -23,7 +23,7 @@
 #include "virfile.h"
 #include "testutils.h"
 
-#if HAVE_DLFCN_H
+#if HAVE_DLFCN_H && defined(RTLD_NEXT)
 
 # ifdef MOCK_HELPER
 #  include "internal.h"