[rhythmbox/wip/hadess/cleanups: 25/30] build: Use fwrite_unlocked() if available




commit e52022996c6e327098b957440de8546cf56e8d3a
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 a5d69a4c4..107297d25 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]