[PATCH spice-common] build: Add new check for recorder library

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Newer version try to use this function if available.

Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 configure.ac | 2 +-
 meson.build  | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 923055b..da0a687 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,7 +27,7 @@ fi
 AM_PROG_CC_C_O
 
 AC_CHECK_HEADERS([sys/mman.h regex.h])
-AC_CHECK_FUNCS([sigaction drand48])
+AC_CHECK_FUNCS([sigaction drand48 setlinebuf])
 AC_SEARCH_LIBS(regcomp, [regex rx])
 
 SPICE_CHECK_SYSDEPS
diff --git a/meson.build b/meson.build
index f69e4bc..0faf703 100644
--- a/meson.build
+++ b/meson.build
@@ -78,7 +78,8 @@ endforeach
 #
 functions = ['alloca',
              'sigaction',
-             'drand48']
+             'drand48',
+             'setlinebuf']
 
 foreach func : functions
   if compiler.has_function(func)
-- 
2.20.1

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]