[rhythmbox/wip/hadess/cleanups: 11/33] build: Use fwrite_unlocked() if available




commit d52845c1fcac697bf1df41970ad92765482c11c2
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 21f80acbf..59dbfb597 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]