chiark / gitweb /
firstboot: Include <crypt.h> for declaration of crypt() if needed (#7944)
authorBjörn Esser <besser82@fedoraproject.org>
Thu, 25 Jan 2018 14:30:15 +0000 (15:30 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:50:18 +0000 (07:50 +0200)
Not every target system may provide a crypt() function in its stdlibc
and may use an external or replacement library, like libxcrypt, for
providing such functions.

See https://fedoraproject.org/wiki/Changes/Replace_glibc_libcrypt_with_libxcrypt.

meson.build

index 86049b0d1630e4ab319ffd8d2c247caf96c831fe..4331af1fd22dbe91c3f3077c636ca2036cfbeeb2 100644 (file)
@@ -665,7 +665,8 @@ conf.set('GPERF_LEN_TYPE', gperf_len_type,
 if not cc.has_header('sys/capability.h')
         error('POSIX caps headers not found')
 endif
-foreach header : ['linux/btrfs.h',
+foreach header : ['crypt.h',
+                  'linux/btrfs.h',
                   'linux/memfd.h',
                   'linux/vm_sockets.h',
                   'sys/auxv.h',