Skip to content

Commit

Permalink
Show libsubid api version in subid.h
Browse files Browse the repository at this point in the history
Signed-off-by: Serge Hallyn <serge@hallyn.com>
  • Loading branch information
hallyn committed Dec 5, 2021
1 parent 32f641b commit 0c9f641
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,4 @@ Makefile.in
/shadow.spec
/shadow-*.tar.*
/libmisc/getdate.c
/libsubid/subid.h
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,7 @@ AC_CONFIG_FILES([
libmisc/Makefile
lib/Makefile
libsubid/Makefile
libsubid/subid.h
src/Makefile
contrib/Makefile
etc/Makefile
Expand Down
4 changes: 4 additions & 0 deletions libsubid/subid.h → libsubid/subid.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

#ifndef SUBID_RANGE_DEFINED
#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 */
struct subid_range {
Expand Down

0 comments on commit 0c9f641

Please sign in to comment.