[rhythmbox/wip/hadess/cleanups: 27/49] build: Use fwrite_unlocked() if available




commit 060d38d64984a0c2700ac9d0bc572e88c00e7f23
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Nov 3 11:33:58 2021 +0100

    build: Use fwrite_unlocked() if available
    
    Detecting the function was done, but the config.h header was never told
    about the availability.

 meson.build | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/meson.build b/meson.build
index 41d81cb77..2cce2eabf 100644
--- a/meson.build
+++ b/meson.build
@@ -143,6 +143,7 @@ cdata.set10('WITH_RHYTHMDB_TREE', 1)
 cdata.set10('RHYTHMDB_ENABLE_SANITY_CHECK', get_option('rhythmdb_debug'))
 
 have_gnu_fwrite_unlocked = cc.has_function('fwrite_unlocked')
+cdata.set10('HAVE_GNU_FWRITE_UNLOCKED', have_gnu_fwrite_unlocked)
 
 gdk_targets = run_command(['pkg-config', '--variable', 'targets', 'gdk-3.0']).stdout().strip()
 


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