Show libsubid api version in subid.h

Signed-off-by: Serge Hallyn <serge@hallyn.com>
This commit is contained in:
Serge Hallyn 2021-12-05 07:57:39 -06:00
parent 32f641b207
commit 0c9f641408
3 changed files with 6 additions and 0 deletions

1
.gitignore vendored
View File

@ -48,3 +48,4 @@ Makefile.in
/shadow.spec /shadow.spec
/shadow-*.tar.* /shadow-*.tar.*
/libmisc/getdate.c /libmisc/getdate.c
/libsubid/subid.h

View File

@ -741,6 +741,7 @@ AC_CONFIG_FILES([
libmisc/Makefile libmisc/Makefile
lib/Makefile lib/Makefile
libsubid/Makefile libsubid/Makefile
libsubid/subid.h
src/Makefile src/Makefile
contrib/Makefile contrib/Makefile
etc/Makefile etc/Makefile

View File

@ -4,6 +4,10 @@
#ifndef SUBID_RANGE_DEFINED #ifndef SUBID_RANGE_DEFINED
#define SUBID_RANGE_DEFINED 1 #define SUBID_RANGE_DEFINED 1
#define SUBID_ABI_VERSION @LIBSUBID_ABI_MAJOR@.@LIBSUBID_ABI_MINOR@.@LIBSUBID_ABI_MICRO@
#define SUBID_ABI_MAJOR @LIBSUBID_ABI_MAJOR@
#define SUBID_ABI_MINOR @LIBSUBID_ABI_MINOR@
#define SUBID_ABI_MICRO @LIBSUBID_ABI_MICRO@
/* subid_range is just a starting point and size of a range */ /* subid_range is just a starting point and size of a range */
struct subid_range { struct subid_range {