mirror of
https://github.com/yrutschle/sslh.git
synced 2025-04-13 07:37:15 +03:00
support for libconfig 1.4.9. Fix #275
This commit is contained in:
parent
5cdff8c558
commit
8b6e06e6c7
@ -1,3 +1,7 @@
|
||||
vNEXT:
|
||||
Added symbol to support libconfig 1.4.9, still in
|
||||
use in CentOS7.
|
||||
|
||||
v1.21: 11JUL2020
|
||||
WARNING:
|
||||
Moved configuration and command-line management to
|
||||
|
14
sslh-conf.c
14
sslh-conf.c
@ -1,5 +1,5 @@
|
||||
/* Generated by conf2struct (https://www.rutschle.net/tech/conf2struct/README)
|
||||
* on Tue Aug 4 16:36:09 2020.
|
||||
* on Tue Aug 11 17:35:54 2020.
|
||||
|
||||
# conf2struct: generate libconf parsers that read to structs
|
||||
# Copyright (C) 2018-2019 Yves Rutschle
|
||||
@ -48,6 +48,18 @@
|
||||
/* This gets included in the output .c file */
|
||||
|
||||
|
||||
/* Libconfig 1.4.9 is still used by major distributions
|
||||
* (e.g. CentOS7) and had a different name for
|
||||
* config_setting_lookup */
|
||||
#if LIBCONFIG_VER_MAJOR == 1
|
||||
#if LIBCONFIG_VER_MINOR == 4
|
||||
#if LIBCONFIG_VER_REVISION == 9
|
||||
#define config_setting_lookup config_lookup_from
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
/* config_type, lookup_fns, type2str are related, keep them together */
|
||||
typedef enum {
|
||||
CFG_BOOL,
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Generated by conf2struct (https://www.rutschle.net/tech/conf2struct/README)
|
||||
* on Wed Jul 29 22:51:16 2020.
|
||||
* on Tue Aug 11 17:35:54 2020.
|
||||
|
||||
# conf2struct: generate libconf parsers that read to structs
|
||||
# Copyright (C) 2018-2019 Yves Rutschle
|
||||
|
Loading…
x
Reference in New Issue
Block a user