about summary refs log tree commit diff
path: root/third_party
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2019-11-04T17·37-0500
committerVincent Ambo <tazjin@google.com>2020-05-17T14·56+0100
commit6cbc248b3fc4e1e9dc44ff0022e503a6c94e5926 (patch)
tree4a73faf3d301a913f3c2fd258653f0a713fdf37b /third_party
parent4b50bd28a05b5c6eb05365b3dd3d5fd6739dbb83 (diff)
refactor(3p/nix): Remove abstractions in HAVE_STRUCT_DIRENT_D_TYPE code r/732
(cherry picked from commit 727dc569a7a13b038d550b8c98a79d5928424d9b)
Diffstat (limited to 'third_party')
-rw-r--r--third_party/nix/meson.build4
1 files changed, 1 insertions, 3 deletions
diff --git a/third_party/nix/meson.build b/third_party/nix/meson.build
index a0543d202e01..50d4dfc0c93e 100644
--- a/third_party/nix/meson.build
+++ b/third_party/nix/meson.build
@@ -321,10 +321,8 @@ dirent_h_prefix = '''
   #include <dirent.h>
 '''
 
-# Code taken from glib, thanks!
 if has_dirent_h and meson.get_compiler('cpp').has_member('struct dirent', 'd_type', prefix: dirent_h_prefix)
-  define = 'HAVE_STRUCT_@0@_@1@'.format('dirent'.to_upper(), 'd_type'.underscorify().to_upper())
-  config_h.set(define, 1)
+  config_h.set('HAVE_STRUCT_DIRENT_D_TYPE', 1)
 endif
 
 # required dependancies