]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
build: don't be picky about deprecated stuff in libevent
authorVincent Bernat <vincent@bernat.im>
Sun, 8 Apr 2018 17:26:43 +0000 (19:26 +0200)
committerVincent Bernat <vincent@bernat.im>
Sun, 8 Apr 2018 17:26:43 +0000 (19:26 +0200)
This should fix:

    evutil_rand.c:177:2: error: 'arc4random_addrandom' is deprecated: first deprecated in macOS 10.12 - use arc4random_stir [-Werror,-Wdeprecated-declarations]

m4/libevent.m4

index 275e5a5682f113a18e384ef3aaa5b2979e29c5dd..e738da4616d9acbbdb542b4139e2ef56d7c322ed 100644 (file)
@@ -63,6 +63,7 @@ AC_DEFUN([lldp_CHECK_LIBEVENT], [
   libevent_configure_args="$libevent_configure_args --disable-shared"
   libevent_configure_args="$libevent_configure_args --with-pic"
   libevent_configure_args="$libevent_configure_args --enable-static"
+  libevent_configure_args="$libevent_configure_args CFLAGS=-Wno-deprecated-declarations"
   lldp_CONFIG_SUBDIRS([libevent], [$libevent_configure_args])
 
   AM_CONDITIONAL([LIBEVENT_EMBEDDED], [test x"$LIBEVENT_EMBEDDED" != x])