]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: remove multi-line statement with trailing '\'
authorAnita Zhang <the.anitazha@gmail.com>
Mon, 21 Sep 2020 18:41:17 +0000 (11:41 -0700)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 21 Sep 2020 19:20:39 +0000 (21:20 +0200)
Error on meson 0.47:
```
meson.build:885:47: ERROR:  Expecting colon got eol_cont.
crypt_header = conf.get('HAVE_CRYPT_H') == 1 ? \
                                               ^
```

This seems to have been fixed in meson 0.50 after a report from
https://github.com/mesonbuild/meson/issues/4720

meson.build

index ce913c2ff6db5397edb4ae1cf2a07a671fb10b84..3607035bd2ed92e8b5733f1eafce01a842fe9a50 100644 (file)
@@ -882,8 +882,7 @@ libm = cc.find_library('m')
 libdl = cc.find_library('dl')
 libcrypt = cc.find_library('crypt')
 
-crypt_header = conf.get('HAVE_CRYPT_H') == 1 ? \
-               '''#include <crypt.h>''' : '''#include <unistd.h>'''
+crypt_header = conf.get('HAVE_CRYPT_H') == 1 ? '''#include <crypt.h>''' : '''#include <unistd.h>'''
 foreach ident : [
         ['crypt_ra',          crypt_header],
         ['crypt_gensalt_ra',  crypt_header]]