]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Show libsubid api version in subid.h 449/head
authorSerge Hallyn <serge@hallyn.com>
Sun, 5 Dec 2021 13:57:39 +0000 (07:57 -0600)
committerSerge Hallyn <serge@hallyn.com>
Sun, 5 Dec 2021 14:02:57 +0000 (08:02 -0600)
Signed-off-by: Serge Hallyn <serge@hallyn.com>
.gitignore
configure.ac
libsubid/subid.h.in [moved from libsubid/subid.h with 95% similarity]

index 80cc16c49ea56fcbc0238f8e54bf28aaba6744a6..fee9c06185035a4e83ea8c0918e6cf0a052a8ee8 100644 (file)
@@ -48,3 +48,4 @@ Makefile.in
 /shadow.spec
 /shadow-*.tar.*
 /libmisc/getdate.c
+/libsubid/subid.h
index 2048d9adbcc4b1328b092f2b1ebea63109bcd621..f07a4db649550031f9d816b2b5d1919d8426a563 100644 (file)
@@ -741,6 +741,7 @@ AC_CONFIG_FILES([
        libmisc/Makefile
        lib/Makefile
        libsubid/Makefile
+       libsubid/subid.h
        src/Makefile
        contrib/Makefile
        etc/Makefile
similarity index 95%
rename from libsubid/subid.h
rename to libsubid/subid.h.in
index 30ccf1603a963e739c7df4c4e88682e40f18f2e1..21b22a268ce0a0680661c19ee424fc6a1b9d9369 100644 (file)
@@ -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 {