[tracker/wip/carlosg/compiler-warnings: 79/80] build: Don't look for posix_fadvise




commit 5cef28c795d02b78311720f8bb8b32b23cd831eb
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Aug 28 17:07:06 2022 +0200

    build: Don't look for posix_fadvise
    
    For some reason this fails, but also is unused in this
    project tree. We can stop asking for its existence.

 config.h.meson.in | 3 ---
 meson.build       | 1 -
 2 files changed, 4 deletions(-)
---
diff --git a/config.h.meson.in b/config.h.meson.in
index 4aff15f72..befa786a5 100644
--- a/config.h.meson.in
+++ b/config.h.meson.in
@@ -19,9 +19,6 @@
 /* libunistring Unicode support library */
 #mesondefine HAVE_LIBUNISTRING
 
-/* Define to 1 if you have the `posix_fadvise' function. */
-#mesondefine HAVE_POSIX_FADVISE
-
 /* Define to 1 if you have the `statvfs64' function. */
 #mesondefine HAVE_STATVFS64
 
diff --git a/meson.build b/meson.build
index 7bac74192..7d74c4079 100644
--- a/meson.build
+++ b/meson.build
@@ -289,7 +289,6 @@ conf.set('HAVE_LIBICU', unicode_library_name == 'icu')
 conf.set('HAVE_LIBSTEMMER', have_libstemmer)
 conf.set('HAVE_LIBUNISTRING', unicode_library_name == 'unistring')
 
-conf.set('HAVE_POSIX_FADVISE', cc.has_function('posix_fadvise', prefix : '#include <fcntl.h>'))
 conf.set('HAVE_STATVFS64', cc.has_header_symbol('sys/statvfs.h', 'statvfs64', args: '-D_LARGEFILE64_SOURCE'))
 
 conf.set('LOCALEDIR', '"@0@/@1@"'.format(get_option('prefix'), get_option('localedir')))


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