diff options
Diffstat (limited to 'third_party/nix')
-rw-r--r-- | third_party/nix/meson.build | 4 |
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 |