[gnome-online-accounts] build: Remove unnecessary timerfd check variable



commit d9463d6ee4ef12f9ad2676508fbf8ba1e90b0570
Author: Iñigo Martínez <inigomartinez gmail com>
Date:   Thu Jul 19 12:38:44 2018 +0200

    build: Remove unnecessary timerfd check variable
    
    The `HAVE_TIMERFD` define should only be set when the test code
    compiles. When the code compiles we can ensure that
    `HAVE_TIMERFD` has to be unconditionally defined, so the auxiliary
    `have_timerfd` variable used for this is unnecessary.
    
    https://gitlab.gnome.org/GNOME/gnome-online-accounts/merge_requests/2

 meson.build | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index 61de7da7..a943b0eb 100644
--- a/meson.build
+++ b/meson.build
@@ -284,9 +284,8 @@ timerfd_support_src = '''
   };
 '''
 
-have_timerfd = cc.compiles(timerfd_support_src, name: 'timerfd support')
-if have_timerfd
-  config_h.set('HAVE_TIMERFD', have_timerfd)
+if cc.compiles(timerfd_support_src, name: 'timerfd support')
+  config_h.set('HAVE_TIMERFD', true)
 
   # libc headers tend to trail kernel support
   # so compensate if necessary


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