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:
0e03784
)
Use getprogname() when program_invocation_short_name is not defined
author
Greg V
<greg@unrelenting.technology>
Tue, 10 Jul 2018 11:00:11 +0000
(14:00 +0300)
committer
Greg V
<greg@unrelenting.technology>
Mon, 16 Jul 2018 10:44:15 +0000
(13:44 +0300)
meson.build
patch
|
blob
|
history
diff --git
a/meson.build
b/meson.build
index
e3d81da
..
931681a
100644
(file)
--- a/
meson.build
+++ b/
meson.build
@@
-87,6
+87,12
@@
if cc.has_header_symbol('dirent.h', 'versionsort', prefix : prefix)
config_h.set('HAVE_VERSIONSORT', '1')
endif
+if not cc.has_header_symbol('errno.h', 'program_invocation_short_name', prefix : prefix)
+ if cc.has_header_symbol('stdlib.h', 'getprogname')
+ config_h.set('program_invocation_short_name', 'getprogname()')
+ endif
+endif
+
if cc.has_header('xlocale.h')
config_h.set('HAVE_XLOCALE_H', '1')
endif