build: Fix build on OpenBSD.

These fixes are already in master. Backporting.
This commit is contained in:
Alastair Poole 2019-06-23 11:48:26 +01:00
parent 384ee8d2b6
commit 3eae49cde2
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ endif
windows = ['windows', 'cygwin']
#bsd for meson 0.46 and 0.47
bsd = ['bsd', 'freebsd', 'dragonfly', 'netbsd']
bsd = ['bsd', 'freebsd', 'dragonfly', 'netbsd', 'openbsd']
linux = ['linux']
osx = ['darwin']

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
echo "static const char *embedded_config = \"\"" > $2
sed -e 's/"/\\"/g; s/$/\"/; s/^/\"/' $1 >> $2
echo "\"\";" >> $2