projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e87780e
)
meson.build: define HAVE_LOCALE_H
author
Peter Hutterer
<peter.hutterer@who-t.net>
Tue, 5 Feb 2019 00:04:56 +0000
(10:04 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Thu, 7 Feb 2019 06:26:48 +0000
(16:26 +1000)
Regression introduced in
99bb0ee7cb35f7d7a932e7cf28885782bad17613
,
HAVE_LOCALE_H isn't defined by default, we need to set it manually.
Reported-by: Pascal Kockwelp
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
meson.build
patch
|
blob
|
history
diff --git
a/meson.build
b/meson.build
index 16b592a8b9b7a77cef0f2951185c5d1d03c941ed..b4cb3331f32b963f0a95736879ea64fc516beabd 100644
(file)
--- a/
meson.build
+++ b/
meson.build
@@
-97,6
+97,14
@@
if cc.has_header('xlocale.h')
config_h.set('HAVE_XLOCALE_H', '1')
endif
+code = '''
+#include <locale.h>
+void main(void) { newlocale(LC_NUMERIC_MASK, "C", (locale_t)0); }
+'''
+if cc.links(code, name : 'locale.h')
+ config_h.set('HAVE_LOCALE_H', '1')
+endif
+
if not cc.has_header_symbol('sys/ptrace.h', 'PTRACE_ATTACH', prefix : prefix)
config_h.set('PTRACE_ATTACH', 'PT_ATTACH')
config_h.set('PTRACE_CONT', 'PT_CONTINUE')