Try to avoid parse_{time,units,flags} symbol conflicts

On Debian stretch systems PAM modules linked against Heimdal run into
symbol conflicts with parse_time() in systemd libraries.  We redefine
parse_time() and friends to rk_parse_time(), ... while keeping the old
names for ABI compatibility with existing clients.

The legacy names should eventually be droppped.
This commit is contained in:
Viktor Dukhovni
2017-08-23 17:33:29 +00:00
committed by Nico Williams
parent 237cd892d9
commit d73ec2510a
5 changed files with 111 additions and 7 deletions

View File

@@ -54,6 +54,14 @@ struct units {
unsigned mult;
};
#define parse_units rk_parse_units
#define unparse_units rk_unparse_units
#define unparse_units_approx rk_unparse_units_approx
#define print_units_table rk_print_units_table
#define parse_flags rk_parse_flags
#define unparse_flags rk_unparse_flags
#define print_flags_table rk_print_flags_table
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
parse_units (const char *s, const struct units *units,
const char *def_unit);