mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-25 12:50:05 +01:00
Use getprogname() when program_invocation_short_name is not defined
This commit is contained in:
parent
0e03784e47
commit
ef9b7e889d
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue